Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
ef3e9d73
Commit
ef3e9d73
authored
Apr 24, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b09ad0e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
go/neo/neo_test.go
go/neo/neo_test.go
+3
-1
go/neo/t_cluster_test.go
go/neo/t_cluster_test.go
+7
-8
No files found.
go/neo/neo_test.go
View file @
ef3e9d73
...
...
@@ -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")
...
...
go/neo/t_cluster_test.go
View file @
ef3e9d73
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment