diff options
author | Evan Jones <evan.jones@datadoghq.com> | 2020-11-16 11:52:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 01:52:56 +0900 |
commit | 3fb3c0de3797a5c55534c1985e982c240ee149b2 (patch) | |
tree | 0217b5e6d8c06cbe75009dfa09987dd3bc941774 /sqlite3.go | |
parent | sqlite3_test.go: Move Go 1.13 test to sqlite3_go113_test.go (#883) (diff) | |
download | golite-3fb3c0de3797a5c55534c1985e982c240ee149b2.tar.gz golite-3fb3c0de3797a5c55534c1985e982c240ee149b2.tar.xz |
TestExecContextCancel: Reduce timeout to make less flaky (#879)
This test fails fairly often. On my system, I can trigger it with:
go test . -run=TestExecContextCancel -count=10 -failfast -v
This makes the test less flaky by timing out the context after a
consistent 50 millisecond delay. This was enough time for the query
to start, then get cancelled with sqlite3_interrupt() in my tests.
This now passes the above check.
This is a modified version of the change suggested in:
https://github.com/mattn/go-sqlite3/pull/865
Diffstat (limited to 'sqlite3.go')
0 files changed, 0 insertions, 0 deletions