]> Cypherpunks repositories - gostls13.git/commit
database/sql: fix TestTxStmtDeadlock test
authorTzu-Chiao Yeh <su3g4284zo6y7@gmail.com>
Wed, 28 Oct 2020 22:03:08 +0000 (06:03 +0800)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Thu, 29 Oct 2020 00:19:20 +0000 (00:19 +0000)
commitd8044a6744f9570e964c6e35e12827473ff12cde
tree1560c8e2fec4f164e13f4bfae84c843382e304cd
parentc1afbf69c71bc624a4766a48ef637a5f726dfe4e
database/sql: fix TestTxStmtDeadlock test

Drop error check because errors can be
not only ErrTxDone for tx stmt executions,
and the purpose of the test is just reproducing
deadlock.

Fixes #42259

Change-Id: I9e7105ada1403ec7064dcc1c3385b36893a1c195
Reviewed-on: https://go-review.googlesource.com/c/go/+/266097
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/database/sql/sql_test.go