Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created January 29, 2016 12:30
Show Gist options
  • Save taotetek/a931e1f9f9a3f9793593 to your computer and use it in GitHub Desktop.
Save taotetek/a931e1f9f9a3f9793593 to your computer and use it in GitHub Desktop.
func TestExternalServer(t *testing.T) {
client := NewClient(NewSecurityNull())
err := client.Connect("tcp://127.0.0.1:31337")
if err != nil {
t.Error(err)
}
err = client.Send([]byte("HELLO"))
if err != nil {
t.Error(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment