echo-go/main_test.go
Jake Walker a258da3678
Some checks failed
continuous-integration/drone/push Build is failing
Initial commit
2022-08-03 18:22:47 +01:00

17 lines
330 B
Go

package echo_go
import "testing"
func TestCanConnect(t *testing.T) {
client, err := New("127.0.0.1:16000", "EchoGoTest")
if err != nil {
t.Fatalf("failed to create client: %v", err)
}
err = client.handshakeLoop("mypassword")
if err != nil {
t.Fatalf("failed to run handshake loop: %v", err)
}
client.Disconnect()
}