Commit ba630738 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ce0bb4f8
...@@ -479,6 +479,7 @@ func DrvTestWatch(t *testing.T, zurl string, zdrvOpen zodb.DriverOpener, bugv .. ...@@ -479,6 +479,7 @@ func DrvTestWatch(t *testing.T, zurl string, zdrvOpen zodb.DriverOpener, bugv ..
// FatalIf(t) returns function f(err), which call t.Fatal if err != nil. // FatalIf(t) returns function f(err), which call t.Fatal if err != nil.
func FatalIf(t *testing.T) func(error) { func FatalIf(t *testing.T) func(error) {
return func(err error) { return func(err error) {
t.Helper()
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
......
...@@ -212,6 +212,9 @@ func TestWatchLoad_vs_BaseMutate(t *testing.T) { ...@@ -212,6 +212,9 @@ func TestWatchLoad_vs_BaseMutate(t *testing.T) {
ReadOnly: true, ReadOnly: true,
Watchq: watchq, Watchq: watchq,
}); X(err) }); X(err)
defer func() {
err := ddrv.Close(); X(err)
}()
tid, err := ddat.MutateBase(); X(err) tid, err := ddat.MutateBase(); X(err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment