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

23 lines
348 B

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