We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f6a32 commit 57e8973Copy full SHA for 57e8973
tests/transaction_test.go
@@ -385,7 +385,7 @@ func TestDeeplyNestedTransactionWithBlockAndWrappedCallback(t *testing.T) {
385
t.Fatalf("Should not find rollbacked record")
386
}
387
388
- if err := tx.First(&User{}, "\"name\" = ?", user2.Name).Error; err == nil {
+ if err := tx.First(&User{}, "\"name\" = ?", user2.Name).Error; err != nil {
389
t.Fatalf("Should not find saved record")
390
391
return nil
0 commit comments