File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ func Test957(t *testing.T) {
34
34
35
35
// when the client is configured to use the test environment
36
36
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
- }
41
37
// and the client is configured to have only 1 connection
42
38
opts .MaxIdleConns = 2
43
39
opts .MaxOpenConns = 1
@@ -49,7 +45,8 @@ func Test957(t *testing.T) {
49
45
// then the client should be able to execute queries for 1 second
50
46
deadline := time .Now ().Add (time .Second )
51
47
for time .Now ().Before (deadline ) {
52
- _ , err := conn .Query (ctx , "SELECT 1" )
48
+ rows , err := conn .Query (ctx , "SELECT 1" )
53
49
require .NoError (t , err )
50
+ rows .Close ()
54
51
}
55
52
}
You can’t perform that action at this time.
0 commit comments