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
cfd1c41b
Commit
cfd1c41b
authored
Dec 30, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a22c8d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
go/neo/t_cluster_test.go
go/neo/t_cluster_test.go
+4
-7
No files found.
go/neo/t_cluster_test.go
View file @
cfd1c41b
...
...
@@ -44,14 +44,14 @@ import (
// Create it with tNewCluster.
// Create nodes with .NewMaster, .NewStorage and .NewClient.
//
// NOTE
about network addresses being
predictable due to using pipenet/lonet for inter-networking.
// NOTE
network addresses are
predictable due to using pipenet/lonet for inter-networking.
//
// XXX text about events tracing
type
tCluster
struct
{
*
tracetest
.
T
// original testing env this cluster was created at
name
string
// name of the cluster
network
*
virtnet
.
SubNetwork
// nodes interoperate via net
ow
rk
network
*
virtnet
.
SubNetwork
// nodes interoperate via net
wo
rk
gotracer
*
TraceCollector
// for tracing go nodes XXX -> GoTracer
//tpy *PyTracer // for tracing py nodes
...
...
@@ -248,7 +248,7 @@ func (t *tCluster) NewMaster(name string) ITestMaster {
return
m
}
// Master returns master node that was previousl
t
created via NewMaster(name).
// Master returns master node that was previousl
y
created via NewMaster(name).
func
(
t
*
tCluster
)
Master
(
name
string
)
ITestMaster
{
tnode
:=
t
.
getNode
(
name
)
m
,
ok
:=
tnode
.
itest
.
(
ITestMaster
)
...
...
@@ -358,16 +358,13 @@ func (m *tMaster) Run(ctx context.Context) error {
func
tNewCluster_MS
(
t0
*
tracetest
.
T
,
name
string
,
Sback
storage
.
Backend
)
*
tCluster
{
t
:=
tNewCluster
(
t0
,
name
)
t
.
NewMaster
(
"m"
)
// NOTE all network addresses are predictable
t
.
NewStorage
(
"s"
,
"m:1"
,
Sback
)
// M starts listening
t
.
Expect
(
"m"
,
netlisten
(
"m:1"
))
t
.
Expect
(
"m"
,
δnode
(
"m"
,
"m:1"
,
proto
.
MASTER
,
1
,
proto
.
RUNNING
,
proto
.
IdTimeNone
))
t
.
Expect
(
"m"
,
clusterState
(
"m"
,
proto
.
ClusterRecovering
))
t
.
NewStorage
(
"s"
,
"m:1"
,
Sback
)
// S starts listening
t
.
Expect
(
"s"
,
netlisten
(
"s:1"
))
...
...
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