1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00
go/src/database/sql
Daniel Theophanes 50ab37d008 database/sql: convert test timeouts to explicit waits with checks
When testing context cancelation behavior do not rely on context
timeouts. Use explicit checks in all such tests. In closeDB
convert the simple check for zero open conns with a wait loop
for zero open conns.

Fixes #19024
Fixes #19041

Change-Id: Iecfcc4467e91249fceb21ffd1f7c62c58140d8e9
Reviewed-on: https://go-review.googlesource.com/36902
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-02-13 19:05:28 +00:00
..
driver
convert_test.go
convert.go
ctxutil.go
doc.txt
example_test.go
fakedb_test.go
sql_test.go database/sql: convert test timeouts to explicit waits with checks 2017-02-13 19:05:28 +00:00
sql.go