This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
|
||||
func TestTcpHelpers(t *testing.T) {
|
||||
|
||||
server, err := Listen(":1337")
|
||||
server, err := Listen("localhost:51337")
|
||||
if err != nil {
|
||||
t.Errorf("Error listening: %v\n", err)
|
||||
}
|
||||
client, err := Dial("localhost:1337")
|
||||
client, err := Dial("localhost:51337")
|
||||
if err != nil {
|
||||
t.Errorf("Error dialing: %v\n", err)
|
||||
}
|
||||
@@ -21,7 +21,7 @@ func TestTcpHelpers(t *testing.T) {
|
||||
messageData = string(data)
|
||||
return nil
|
||||
})
|
||||
server.HandleCall(2, func(data []byte) (uint16, []byte, error) {
|
||||
server.HandleCall(2, func(data []byte) (uint32, []byte, error) {
|
||||
log.Printf("Received call: %s\n", string(data))
|
||||
return 3, []byte("Hello, client!"), nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user