mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Fix flake.
This commit is contained in:
@@ -248,8 +248,9 @@ func Test_nested_context(t *testing.T) {
|
||||
want(inner, 0)
|
||||
cancel()
|
||||
|
||||
if inner.Next() || !errors.Is(inner.Err(), sqlite3.INTERRUPT) {
|
||||
t.Fatal(inner.Err())
|
||||
var terr interface{ Temporary() bool }
|
||||
if inner.Next() || !errors.As(inner.Err(), &terr) || !terr.Temporary() {
|
||||
t.Fatalf("got %v, want temporary", inner.Err())
|
||||
}
|
||||
|
||||
want(outer, 1)
|
||||
|
||||
Reference in New Issue
Block a user