Always send Hello on NewClient

This commit is contained in:
Henry
2014-02-11 13:10:24 +01:00
parent ce26df96ac
commit 9de2fd3f5b
4 changed files with 23 additions and 38 deletions

View File

@ -11,8 +11,6 @@ func TestClientLookupInvalid(t *testing.T) {
setup()
defer teardown()
client.Hello()
addr, err := client.Lookup("abci2p")
if addr != "" || err == nil {
t.Error("client.Lookup() should throw an error.")
@ -30,8 +28,6 @@ func ExampleClient_Lookup() {
setup()
defer teardown()
client.Hello()
_, err = client.Lookup("zzz.i2p")
if err != nil {
fmt.Printf("client.Lookup() should not throw an error.\n%s\n", err)