Commit ef3e9d73 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b09ad0e2
......@@ -55,7 +55,9 @@ func TestMasterStorage0(t0 *testing.T) {
defer t.Stop()
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")
......
......@@ -167,18 +167,17 @@ func (t *TestCluster) registerNewNode(name string) *tNode {
// XXX error of creating py process?
func (t *TestCluster) NewMaster(name string) ITestMaster {
node := t.registerNewNode(name)
//... XXX
m := tNewMaster(t.name, ":1", node.net)
return m
return tNewMaster(t.name, ":1", node.net)
}
func (t *TestCluster) NewStorage(node string) ITestStorage {
panic("TODO")
func (t *TestCluster) NewStorage(name, masterAddr string, back storage.Backend) ITestStorage {
node := t.registerNewNode(name)
return tNewStorage(t.name, masterAddr, ":1", node.net, back)
}
func (t *TestCluster) NewClient(node string) ITestClient {
panic("TODO")
func (t *TestCluster) NewClient(name, masterAddr string) ITestClient {
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