Commit ef3e9d73 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b09ad0e2
...@@ -55,7 +55,9 @@ func TestMasterStorage0(t0 *testing.T) { ...@@ -55,7 +55,9 @@ func TestMasterStorage0(t0 *testing.T) {
defer t.Stop() defer t.Stop()
M := t.NewMaster("m") M := t.NewMaster("m")
S := t.NewStorage("s") //, "m:1") // XXX do we need to provide Mlist here? //zstor := xfs1stor("../zodb/storage/fs1/testdata/1.fs")
zback := xfs1back("../zodb/storage/fs1/testdata/1.fs")
S := t.NewStorage("s", "m:1", zback) // XXX do we need to provide Mlist here?
C := t.NewClient("c") C := t.NewClient("c")
......
...@@ -167,18 +167,17 @@ func (t *TestCluster) registerNewNode(name string) *tNode { ...@@ -167,18 +167,17 @@ func (t *TestCluster) registerNewNode(name string) *tNode {
// XXX error of creating py process? // XXX error of creating py process?
func (t *TestCluster) NewMaster(name string) ITestMaster { func (t *TestCluster) NewMaster(name string) ITestMaster {
node := t.registerNewNode(name) node := t.registerNewNode(name)
//... XXX return tNewMaster(t.name, ":1", node.net)
m := tNewMaster(t.name, ":1", node.net)
return m
} }
func (t *TestCluster) NewStorage(node string) ITestStorage { func (t *TestCluster) NewStorage(name, masterAddr string, back storage.Backend) ITestStorage {
panic("TODO") node := t.registerNewNode(name)
return tNewStorage(t.name, masterAddr, ":1", node.net, back)
} }
func (t *TestCluster) NewClient(node string) ITestClient { func (t *TestCluster) NewClient(name, masterAddr string) ITestClient {
panic("TODO") node := t.registerNewNode(name)
return newClient(t.name, masterAddr, node.net)
} }
......
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