We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b6c56b commit b90be83Copy full SHA for b90be83
1 file changed
tests/conn_test.go
@@ -292,7 +292,7 @@ func TestConnAcquireRelease(t *testing.T) {
292
Method: clickhouse.CompressionLZ4,
293
},
294
TLS: tlsConfig,
295
- DialTimeout: 1 * time.Millisecond, // Fast acquire failure
+ DialTimeout: 100 * time.Millisecond, // Fast acquire failure
296
MaxIdleConns: 1,
297
MaxOpenConns: 1, // Force one connection
298
})
@@ -309,7 +309,7 @@ func TestConnAcquireRelease(t *testing.T) {
309
finishedWg.Add(1)
310
go func() {
311
startedWg.Done()
312
- require.NoError(t, conn.Exec(context.Background(), "SELECT sleep(0.3)"))
+ require.NoError(t, conn.Exec(context.Background(), "SELECT sleep(1)"))
313
finishedWg.Done()
314
}()
315
startedWg.Wait()
0 commit comments