Discussion #250.

This commit is contained in:
Nuno Cruces
2025-03-28 11:10:51 +00:00
parent 6290a14990
commit e5c285b783
4 changed files with 13 additions and 16 deletions

View File

@@ -146,10 +146,7 @@ func TestConn_SetInterrupt(t *testing.T) {
}
defer stmt.Close()
go func() {
time.Sleep(time.Millisecond)
cancel()
}()
time.AfterFunc(time.Millisecond, cancel)
// Interrupting works.
err = stmt.Exec()