All checks were successful
continuous-integration/drone/push Build is passing
17 lines
337 B
Go
17 lines
337 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("4.0.0", "password")
|
|
if err != nil {
|
|
t.Fatalf("failed to run handshake loop: %v", err)
|
|
}
|
|
|
|
client.Disconnect()
|
|
}
|