Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error checking in tests #1127

Merged
merged 2 commits into from Jun 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions conn_test.go
Expand Up @@ -318,7 +318,7 @@ func TestStatment(t *testing.T) {

if !r1.Next() {
if r.Err() != nil {
t.Fatal(r1.Err())
t.Fatal(r.Err())
}
t.Fatal("expected row")
}
Expand Down Expand Up @@ -1290,7 +1290,7 @@ func TestNullAfterNonNull(t *testing.T) {

if !r.Next() {
if r.Err() != nil {
t.Fatal(err)
t.Fatal(r.Err())
}
t.Fatal("expected row")
}
Expand All @@ -1305,7 +1305,7 @@ func TestNullAfterNonNull(t *testing.T) {

if !r.Next() {
if r.Err() != nil {
t.Fatal(err)
t.Fatal(r.Err())
}
t.Fatal("expected row")
}
Expand Down Expand Up @@ -1501,7 +1501,7 @@ func TestRuntimeParameters(t *testing.T) {
}

value, success := tryGetParameterValue()
if success != test.success && !test.success {
if success != test.success && !success {
t.Fatalf("%v: unexpected error: %v", test.conninfo, err)
}
if success != test.success {
Expand Down