File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ func TestDeeplyNestedTransactionWithBlockAndWrappedCallback(t *testing.T) {
385
385
t .Fatalf ("Should not find rollbacked record" )
386
386
}
387
387
388
- if err := tx .First (& User {}, "\" name\" = ?" , user2 .Name ).Error ; err = = nil {
388
+ if err := tx .First (& User {}, "\" name\" = ?" , user2 .Name ).Error ; err ! = nil {
389
389
t .Fatalf ("Should not find saved record" )
390
390
}
391
391
return nil
@@ -401,7 +401,7 @@ func TestDeeplyNestedTransactionWithBlockAndWrappedCallback(t *testing.T) {
401
401
t .Fatalf ("Should not find rollbacked parent record" )
402
402
}
403
403
404
- if err := DB .First (& User {}, "\" name\" = ?" , user2 .Name ).Error ; err = = nil {
404
+ if err := DB .First (& User {}, "\" name\" = ?" , user2 .Name ).Error ; err ! = nil {
405
405
t .Fatalf ("Should not find rollbacked nested record" )
406
406
}
407
407
}
You can’t perform that action at this time.
0 commit comments