Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(105)

Unified Diff: state/api/client_test.go

Issue 83090044: state/api: listen on localhost explicitly
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/api/apiclient_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « state/api/apiclient_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b