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

Unified Diff: provider/local/local_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 | « [revision details] ('k') | state/api/apiclient_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: provider/local/local_test.go
=== modified file 'provider/local/local_test.go'
--- provider/local/local_test.go 2014-02-17 12:57:06 +0000
+++ provider/local/local_test.go 2014-04-01 15:28:49 +0000
@@ -34,7 +34,7 @@
func (*localSuite) TestCheckLocalPort(c *gc.C) {
// Listen on a random port.
- ln, err := net.Listen("tcp", ":0")
+ ln, err := net.Listen("tcp", "127.0.0.1:0")
c.Assert(err, gc.IsNil)
defer ln.Close()
port := ln.Addr().(*net.TCPAddr).Port
« no previous file with comments | « [revision details] ('k') | state/api/apiclient_test.go » ('j') | no next file with comments »

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