]> Cypherpunks repositories - gostls13.git/commit
database/sql: make tests repeatable with -cpu=n,n
authorAlberto GarcĂ­a Hierro <alberto@garciahierro.com>
Thu, 17 Oct 2013 16:02:32 +0000 (09:02 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 17 Oct 2013 16:02:32 +0000 (09:02 -0700)
commite39eda1366384cdef21f04c5c964ae93e2ea9ce3
tree53ccd471560118c6647ca78e27f66e0e88d55507
parent078bcffcb83e5aafd5e368c587bc8cb159a39020
database/sql: make tests repeatable with -cpu=n,n

New test added in CL 14611045 causes a deadlock when
running the tests with -cpu=n,n because the fakedb
driver always waits when opening a new connection after
running TestConnectionLeak.  Reset its state after.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/14780043
src/pkg/database/sql/fakedb_test.go