The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/api/proto/message/client_test.go

22 lines
270 B

package message
import (
"testing"
)
const (
testIP = "127.0.0.1"
)
func TestClient(t *testing.T) {
s := NewServer(nil, nil)
s.Start()
client := NewClient(testIP)
_, err := client.Process(&Message{})
if err == nil {
t.Errorf("Not expected.")
}
s.Stop()
}