Commit b78c529a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 81736b44
...@@ -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
......
...@@ -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")
......
...@@ -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\nwant: [%v]", msg.Event, strings.Join(strv, " | ")) tc.t.Fatalf("expect:\nhave: %T %v\nwant: [%v]", msg.Event, msg.Event, strings.Join(strv, " | "))
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment