aboutsummaryrefslogtreecommitdiff
path: root/testing/pgruntime/connect_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-11-10 00:19:47 +0100
committerStefan Majewsky <majewsky@gmx.net>2026-11-10 00:19:47 +0100
commit833e477420513a46faa4ebcc1164c50a8288a9ab (patch)
tree62957737a002308829a1b0361ae1e32c72e8a8c6 /testing/pgruntime/connect_test.go
parentca96a116a0e468f6fe9e1701ca90cf734acdef57 (diff)
downloadgo-gg-833e477420513a46faa4ebcc1164c50a8288a9ab.tar.gz
replace query() with oblast.SelectOne() or oblast.TupleSelectOne()
Diffstat (limited to 'testing/pgruntime/connect_test.go')
-rw-r--r--testing/pgruntime/connect_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/pgruntime/connect_test.go b/testing/pgruntime/connect_test.go
index 4992c7f..f43c6f8 100644
--- a/testing/pgruntime/connect_test.go
+++ b/testing/pgruntime/connect_test.go
@@ -40,8 +40,7 @@ func TestMultipleConnectionsToSameDB(t *testing.T) {
// another connection with ConnectForTest() should truncate all tables and reset all sequences
db3, target2 := connector.ConnectForTest(t, defaultBehavior)
assert.Equal(t, target, target2)
- var count int64
- err = queryRow(ctx, db3, `SELECT COUNT(*) FROM objects`, nil, []any{&count})
+ count, err := oblast.SelectOne[int64](ctx, db3, `SELECT COUNT(*) FROM objects`)
if assert.ErrEqual(t, err, nil) {
assert.Equal(t, count, 0)
}