Skip to content

Commit 8f88b68

Browse files
committed
Fix flaky test.
1 parent d1075f7 commit 8f88b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/txn_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ func TestConn_Transaction_busy(t *testing.T) {
282282
go cancel()
283283

284284
_, err = db2.BeginExclusive()
285-
if !errors.Is(err, sqlite3.BUSY) {
286-
t.Errorf("got %v, want sqlite3.BUSY", err)
285+
if !errors.Is(err, sqlite3.BUSY) && !errors.Is(err, sqlite3.INTERRUPT) {
286+
t.Errorf("got %v, want sqlite3.BUSY or sqlite3.INTERRUPT", err)
287287
}
288288

289289
err = nil

0 commit comments

Comments
 (0)