瀏覽代碼

dont listen on all interfaces in tests

Listening on all interfaces will trigger the OSX firewall popup.
Chris Bannister 10 年之前
父節點
當前提交
75722e3d43
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

@@ -2284,7 +2284,7 @@ func TestDiscoverViaProxy(t *testing.T) {
 	// that is infact a proxy it discovers the rest of the ring behind the proxy
 	// and does not store the proxies address as a host in its connection pool.
 	// See https://github.com/gocql/gocql/issues/481
-	proxy, err := net.Listen("tcp", ":0")
+	proxy, err := net.Listen("tcp", "localhost:0")
 	if err != nil {
 		t.Fatalf("unable to create proxy listener: %v", err)
 	}