Skip to content

Commit aa43e90

Browse files
committed
fix: avoid testing.T log after test finished
1 parent 7629aa0 commit aa43e90

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/issues/957_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ func Test957(t *testing.T) {
3434

3535
// when the client is configured to use the test environment
3636
opts := clickhouse_tests.ClientOptionsFromEnv(testEnv, clickhouse.Settings{})
37-
opts.Debug = true
38-
opts.Debugf = func(format string, v ...interface{}) {
39-
t.Logf(format, v...)
40-
}
4137
// and the client is configured to have only 1 connection
4238
opts.MaxIdleConns = 2
4339
opts.MaxOpenConns = 1
@@ -49,7 +45,8 @@ func Test957(t *testing.T) {
4945
// then the client should be able to execute queries for 1 second
5046
deadline := time.Now().Add(time.Second)
5147
for time.Now().Before(deadline) {
52-
_, err := conn.Query(ctx, "SELECT 1")
48+
rows, err := conn.Query(ctx, "SELECT 1")
5349
require.NoError(t, err)
50+
rows.Close()
5451
}
5552
}

0 commit comments

Comments
 (0)