Index: state/api/client_test.go |
=== modified file 'state/api/client_test.go' |
--- state/api/client_test.go 2014-04-01 05:38:06 +0000 |
+++ state/api/client_test.go 2014-04-01 15:28:49 +0000 |
@@ -66,7 +66,7 @@ |
// Finally, try the NotImplementedError by mocking the server |
// address to a handler that returns 405 Method Not Allowed for |
// POST. |
- lis, err := net.Listen("tcp", ":0") |
+ lis, err := net.Listen("tcp", "127.0.0.1:0") |
c.Assert(err, gc.IsNil) |
defer lis.Close() |
url := fmt.Sprintf("http://%v", lis.Addr()) |