]> Cypherpunks repositories - gostls13.git/commit
database/sql: let tests wait for db pool to come to expected state
authorDaniel Theophanes <kardianos@gmail.com>
Wed, 25 Jan 2017 16:27:45 +0000 (08:27 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 25 Jan 2017 21:57:28 +0000 (21:57 +0000)
commit165cfbc409d54154263c26fb0cc2b2acd75d8b53
tree7d1b52eea6ebea2656fd16c743d41e86819181a0
parentea73649343b5d199d7f3d8525399e7a07a608543
database/sql: let tests wait for db pool to come to expected state

Slower builders were failing TestQueryContext because the cancel
and return to conn pool happens async. TestQueryContext already
uses a wait method for this reason. Use the same method for
other context tests.

Fixes #18759

Change-Id: I84cce697392b867e4ebdfadd38027a06ca14655f
Reviewed-on: https://go-review.googlesource.com/35750
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/database/sql/sql_test.go