diff --git a/test/lib/hector/test_connection.rb b/test/lib/hector/test_connection.rb
index <HASH>..<HASH> 100644
--- a/test/lib/hector/test_connection.rb
+++ b/test/lib/hector/test_connection.rb
@@ -17,8 +17,12 @@ module Hector
       @connection_closed = true
     end
 
-    def get_peername
-      "\020\002\346\075\177\000\000\001\000\000\000\000\000\000\000\000"
+    def address
+      "test"
+    end
+
+    def port
+      0
     end
   end
 end
Stub address and port instead of get_peername