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
b2929804
Commit
b2929804
authored
Jul 18, 2023
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client_test: Add nmaster={1,2} to test matrix
Tests should work with both one master or more than one masters.
parent
6dba6409
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
83 deletions
+86
-83
go/neo/client_test.go
go/neo/client_test.go
+86
-83
No files found.
go/neo/client_test.go
View file @
b2929804
...
...
@@ -436,9 +436,11 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
f
(
work
)
}
// TODO + all variants with nreplica=X, npartition=Y,
nmaster=Z,
... ?
// TODO + all variants with nreplica=X, npartition=Y, ... ?
for
_
,
nmaster
:=
range
[]
int
{
1
,
1
}
{
for
_
,
ssl
:=
range
[]
bool
{
false
,
true
}
{
kind
:=
""
if
ssl
{
kind
=
"ssl"
}
else
{
kind
=
"!ssl"
}
...
...
@@ -446,7 +448,7 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
neoOpt
:=
NEOSrvOptions
{
name
:
"1"
,
SSL
:
ssl
,
nmaster
:
1
,
nmaster
:
nmaster
,
}
// startNEOpy starts NEO/py server with database in workdir/
...
...
@@ -536,6 +538,7 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
})
})
}
}
}
// withNEO tests f on all kinds of NEO servers connected to by NEO client with
...
...
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