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
b78c529a
Commit
b78c529a
authored
Jun 14, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
81736b44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+5
-2
go/xcommon/xnet/pipenet/pipenet.go
go/xcommon/xnet/pipenet/pipenet.go
+0
-1
go/xcommon/xtesting/xtesting.go
go/xcommon/xtesting/xtesting.go
+2
-2
No files found.
go/neo/server/cluster_test.go
View file @
b78c529a
...
@@ -161,8 +161,11 @@ func TestMasterStorage(t *testing.T) {
...
@@ -161,8 +161,11 @@ func TestMasterStorage(t *testing.T) {
//tc.ExpectNetTx("2c", "2s", "\x00\x00\x00\x01") // handshake
//tc.ExpectNetTx("2c", "2s", "\x00\x00\x00\x01") // handshake
//tc.ExpectNetTx("2s", "2c", "\x00\x00\x00\x01")
//tc.ExpectNetTx("2s", "2c", "\x00\x00\x00\x01")
tc
.
ExpectPar
(
tc
.
ExpectPar
(
&
xnet
.
TraceTx
{
Src
:
"2c"
,
Dst
:
"2s"
,
Pkt
:
[]
byte
(
"
\x00\x00\x00\x01
"
)},
//&xnet.TraceTx{Src: "2c", Dst: "2s", Pkt: []byte("\x00\x00\x00\x01")},
&
xnet
.
TraceTx
{
Src
:
"2s"
,
Dst
:
"2c"
,
Pkt
:
[]
byte
(
"
\x00\x00\x00\x01
"
)},)
//&xnet.TraceTx{Src: "2s", Dst: "2c", Pkt: []byte("\x00\x00\x00\x01")},)
&
xnet
.
TraceTx
{
Src
:
&
pipenet
.
Addr
{
Net
:
"pipe"
,
Port
:
2
,
Endpoint
:
0
},
Dst
:
&
pipenet
.
Addr
{
Net
:
"pipe"
,
Port
:
2
,
Endpoint
:
1
},
Pkt
:
[]
byte
(
"
\x00\x00\x00\x01
"
)},
)
//&xnet.TraceTx{Src: "2s", Dst: "2c", Pkt: []byte("\x00\x00\x00\x01")},)
// XXX temp
// XXX temp
...
...
go/xcommon/xnet/pipenet/pipenet.go
View file @
b78c529a
...
@@ -52,7 +52,6 @@ import (
...
@@ -52,7 +52,6 @@ import (
const
NetPrefix
=
"pipe"
// pipenet package creates only "pipe*" networks
const
NetPrefix
=
"pipe"
// pipenet package creates only "pipe*" networks
var
(
var
(
errBadAddress
=
errors
.
New
(
"invalid address"
)
errNetClosed
=
errors
.
New
(
"network connection closed"
)
errNetClosed
=
errors
.
New
(
"network connection closed"
)
errAddrAlreadyUsed
=
errors
.
New
(
"address already in use"
)
errAddrAlreadyUsed
=
errors
.
New
(
"address already in use"
)
errConnRefused
=
errors
.
New
(
"connection refused"
)
errConnRefused
=
errors
.
New
(
"connection refused"
)
...
...
go/xcommon/xtesting/xtesting.go
View file @
b78c529a
...
@@ -146,8 +146,8 @@ loop:
...
@@ -146,8 +146,8 @@ loop:
// matching event not found - bad
// matching event not found - bad
strv
:=
[]
string
{}
strv
:=
[]
string
{}
for
_
,
e
:=
range
eventExpectV
{
for
_
,
e
:=
range
eventExpectV
{
strv
=
append
(
strv
,
fmt
.
Sprintf
(
"%
v"
,
e
))
strv
=
append
(
strv
,
fmt
.
Sprintf
(
"%
T %v"
,
e
,
e
))
}
}
tc
.
t
.
Fatalf
(
"expect:
have: %v
\n
want: [%v]"
,
msg
.
Event
,
strings
.
Join
(
strv
,
" | "
))
tc
.
t
.
Fatalf
(
"expect:
\n
have: %T %v
\n
want: [%v]"
,
msg
.
Event
,
msg
.
Event
,
strings
.
Join
(
strv
,
" | "
))
}
}
}
}
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