Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
b3628b5f
Commit
b3628b5f
authored
Jan 12, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ba5285b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
go/neo/neo_test.go
go/neo/neo_test.go
+9
-8
No files found.
go/neo/neo_test.go
View file @
b3628b5f
// Copyright (C) 2017-20
19
Nexedi SA and Contributors.
// Copyright (C) 2017-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -43,6 +43,7 @@ import (
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/go123/xnet"
"lab.nexedi.com/kirr/go123/xnet/pipenet"
"lab.nexedi.com/kirr/go123/xsync"
"time"
)
...
...
@@ -60,17 +61,17 @@ func TestMasterStorage(t0 *testing.T) {
C
:=
t
.
NewClient
(
"c"
,
"m:1"
)
// start nodes XXX move starting to TestCluster?
gwg
,
gctx
:=
errgroup
.
WithContext
(
bg
)
gwg
:=
xsync
.
NewWorkGroup
(
bg
)
//defer xwait(gwg) XXX not yet correctly stopped on context cancel
gwg
.
Go
(
func
()
error
{
return
M
.
Run
(
g
ctx
)
gwg
.
Go
(
func
(
ctx
context
.
Context
)
error
{
return
M
.
Run
(
ctx
)
})
gwg
.
Go
(
func
()
error
{
return
S
.
Run
(
g
ctx
)
gwg
.
Go
(
func
(
ctx
context
.
Context
)
error
{
return
S
.
Run
(
ctx
)
})
gwg
.
Go
(
func
()
error
{
return
C
.
run
(
g
ctx
)
gwg
.
Go
(
func
(
ctx
context
.
Context
)
error
{
return
C
.
run
(
ctx
)
})
tM
:=
t
.
Checker
(
"m"
)
...
...
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