]> Cypherpunks repositories - gostls13.git/commit
database/sql: deflake query cancel tests
authorDaniel Theophanes <kardianos@gmail.com>
Wed, 30 Nov 2016 17:30:31 +0000 (09:30 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Nov 2016 18:40:03 +0000 (18:40 +0000)
commit2a64ebfc6d247e9177190f862b0947ac98c5eb43
tree3311bb34320bbf491f893e949eed4b96f8d4c6e6
parentf6bff1d587c3523d2d1b98f0737a922ac9b5becc
database/sql: deflake query cancel tests

Rather then using a sleep in the fake DB, go to a channel
select and wait for the context to be done.

Fixes #18115

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