]> Cypherpunks.ru repositories - gostls13.git/commit
database/sql: make TestTxContextWaitNoDiscard test more robust
authorDmitri Goutnik <dgoutnik@gmail.com>
Sat, 9 Jul 2022 12:36:45 +0000 (07:36 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 11 Jul 2022 17:14:33 +0000 (17:14 +0000)
commit398dcd1cf00a1536dad98cf87c16f8ad0c8913fc
treeb6723b7be40b3d82313c5d206616ffb149a3a843
parentf956941b0f5a5a841827bd3e84401d32916bb73e
database/sql: make TestTxContextWaitNoDiscard test more robust

Similar to CL 385934, rely on waiter trigger instead of the WAIT query
prefix and factor out the common test code.

Fixes #53222

Change-Id: I46efc85ca102b350bb4dbe8e514921e016870ffb
Reviewed-on: https://go-review.googlesource.com/c/go/+/416655
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Dmitri Goutnik <dgoutnik@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/database/sql/sql_test.go