Commit a3cb9f32 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6ff08620
...@@ -34,6 +34,9 @@ import ( ...@@ -34,6 +34,9 @@ import (
"lab.nexedi.com/kirr/neo/go/internal/xtesting" "lab.nexedi.com/kirr/neo/go/internal/xtesting"
"lab.nexedi.com/kirr/neo/go/zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/zodbtools" "lab.nexedi.com/kirr/neo/go/zodb/zodbtools"
// for file: scheme support
_ "lab.nexedi.com/kirr/neo/go/zodb/storage/fs1"
) )
// DemoData represents data for a demo: storage. // DemoData represents data for a demo: storage.
...@@ -95,14 +98,14 @@ func withDemoData(t *testing.T, f func(t *testing.T, ddat *DemoData), optv ...tO ...@@ -95,14 +98,14 @@ func withDemoData(t *testing.T, f func(t *testing.T, ddat *DemoData), optv ...tO
// verify on all combinations of preload being split into base+δ // verify on all combinations of preload being split into base+δ
work := xtempdir(t) work := xtempdir(t)
defer os.RemoveAll(work) //defer os.RemoveAll(work)
test1 := func(δstart zodb.Tid, zdumpBase, zdumpδ string) { test1 := func(δstart zodb.Tid, zdumpBase, zdumpδ string) {
t.Helper() t.Helper()
t.Run(fmt.Sprintf("δstart=%s", δstart), func(t *testing.T) { t.Run(fmt.Sprintf("δstart=%s", δstart), func(t *testing.T) {
t.Helper() t.Helper()
X := xtesting.FatalIf(t) X := xtesting.FatalIf(t)
work1 := work + "/" + δstart.String() work1 := work + "/δ" + δstart.String()
err := os.Mkdir(work1, 0x777); X(err) err := os.Mkdir(work1, 0777); X(err)
base := work1+"/base.fs" base := work1+"/base.fs"
δ := work1+"/δ.fs" δ := work1+"/δ.fs"
......
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