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
503c59b9
Commit
503c59b9
authored
Feb 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
56c74b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
go/neo/client_test.go
go/neo/client_test.go
+5
-5
No files found.
go/neo/client_test.go
View file @
503c59b9
...
...
@@ -312,7 +312,7 @@ func (n *NEOGoSrv) Close() (err error) {
}
if
n
.
Sback
!=
nil
{
__
:=
n
.
Sback
.
Close
()
// XXX should be in Storage?
__
:=
n
.
Sback
.
Close
()
err
=
xerr
.
First
(
err
,
__
)
}
...
...
@@ -394,7 +394,7 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
t
.
Helper
()
X
:=
xtesting
.
FatalIf
(
t
)
work
,
err
:=
ioutil
.
TempDir
(
""
,
"neo"
);
X
(
err
)
//
defer os.RemoveAll(work)
defer
os
.
RemoveAll
(
work
)
f
(
work
)
}
...
...
@@ -512,7 +512,7 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
// - verifies that encoding autodetection actually works when
// NEO/go client connects NEO/py server.
//
// For example if NEO/py server implments only M encoding,
// For example if NEO/py server impl
e
ments only M encoding,
// testing with N,M verifies retry after handshaking with
// enc=N.
encTryOrder0
:=
*
tneonet
.
DialEncTryOrder
...
...
@@ -547,7 +547,7 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
if
noautodetect
&&
len
(
encv
)
>
1
&&
encv
[
0
]
==
srvEnc
{
// skip - the other case when encv[0] != srvEnc will
// both test autodetection and exchan
v
e via srvEnc.
// both test autodetection and exchan
g
e via srvEnc.
t
.
Skip
(
"skip: does not excercise client redial"
)
}
...
...
@@ -581,7 +581,7 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
}
//
XXX
connect with wrong clusterName -> rejected
//
TODO
connect with wrong clusterName -> rejected
func
TestEmptyDB
(
t
*
testing
.
T
)
{
withNEO
(
t
,
func
(
t
*
testing
.
T
,
nsrv
NEOSrv
,
n
*
Client
)
{
...
...
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