Skip to content

Commit ae976ad

Browse files
committed
fix TestRawBytesAreNotModified called parent t.Fatal()
1 parent a560843 commit ae976ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: driver_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3181,14 +3181,14 @@ func TestRawBytesAreNotModified(t *testing.T) {
31813181

31823182
rows, err := dbt.db.QueryContext(ctx, `SELECT id, value FROM test`)
31833183
if err != nil {
3184-
t.Fatal(err)
3184+
dbt.Fatal(err)
31853185
}
31863186

31873187
var b int
31883188
var raw sql.RawBytes
31893189
for rows.Next() {
31903190
if err := rows.Scan(&b, &raw); err != nil {
3191-
t.Fatal(err)
3191+
dbt.Fatal(err)
31923192
}
31933193

31943194
before := string(raw)
@@ -3198,7 +3198,7 @@ func TestRawBytesAreNotModified(t *testing.T) {
31983198
after := string(raw)
31993199

32003200
if before != after {
3201-
t.Fatalf("the backing storage for sql.RawBytes has been modified (i=%v)", i)
3201+
dbt.Fatalf("the backing storage for sql.RawBytes has been modified (i=%v)", i)
32023202
}
32033203
}
32043204
rows.Close()

0 commit comments

Comments
 (0)