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
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