Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCancelTransaction (0.52 sec)

  1. tests/transaction_test.go

    				return tx5.First(&User{}, "name = ?", "transaction-2").Error
    			})
    		}); err != nil {
    			t.Fatalf("prepare statement and nested transcation coexist" + err.Error())
    		}
    	})
    }
    
    func TestCancelTransaction(t *testing.T) {
    	ctx := context.Background()
    	ctx, cancelFunc := context.WithCancel(ctx)
    	cancelFunc()
    
    	user := *GetUser("cancel_transaction", Config{})
    	DB.Create(&user)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top