Skip to content

Commit f407684

Browse files
committed
fix a few tests which were testing the wrong thing
1 parent 04a39d1 commit f407684

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sqlx_context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ func TestUsageContext(t *testing.T) {
793793
t.Error("Expected an error")
794794
}
795795
err = stmt1.GetContext(ctx, &jason, "DoesNotExist User 2")
796-
if err != nil {
796+
if err == nil {
797797
t.Fatal(err)
798798
}
799799

sqlx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ func TestUsage(t *testing.T) {
967967
t.Error("Expected an error")
968968
}
969969
err = stmt1.Get(&jason, "DoesNotExist User 2")
970-
if err != nil {
970+
if err == nil {
971971
t.Fatal(err)
972972
}
973973

0 commit comments

Comments
 (0)