We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78473b4 commit b9b2ff1Copy full SHA for b9b2ff1
tests/parallel/parallel_test.go
@@ -1,7 +1,9 @@
1
package tests
2
3
import (
4
+ "errors"
5
"io"
6
+ "log"
7
"net/url"
8
"os"
9
"os/exec"
@@ -19,6 +21,20 @@ import (
19
21
"github.com/ncruces/go-sqlite3/vfs/memdb"
20
22
)
23
24
+func TestMain(m *testing.M) {
25
+ sqlite3.AutoExtension(func(c *sqlite3.Conn) error {
26
+ return c.ConfigLog(func(code sqlite3.ExtendedErrorCode, msg string) {
27
+ // Having to do journal recovery is unexpected.
28
+ if errors.Is(code, sqlite3.NOTICE) {
29
+ log.Panicf("%v (%d): %s", code, code, msg)
30
+ } else {
31
+ log.Printf("%v (%d): %s", code, code, msg)
32
+ }
33
+ })
34
35
+ m.Run()
36
+}
37
+
38
func Test_parallel(t *testing.T) {
39
if !vfs.SupportsFileLocking {
40
t.Skip("skipping without locks")
0 commit comments