Skip to content

Commit

Permalink
fix a few tests which were testing the wrong thing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Feb 21, 2017
1 parent 04a39d1 commit f407684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqlx_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ func TestUsageContext(t *testing.T) {
t.Error("Expected an error")
}
err = stmt1.GetContext(ctx, &jason, "DoesNotExist User 2")
if err != nil {
if err == nil {
t.Fatal(err)
}

Expand Down
2 changes: 1 addition & 1 deletion sqlx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ func TestUsage(t *testing.T) {
t.Error("Expected an error")
}
err = stmt1.Get(&jason, "DoesNotExist User 2")
if err != nil {
if err == nil {
t.Fatal(err)
}

Expand Down

0 comments on commit f407684

Please sign in to comment.