Adjust test to match change in ListenHttp

This commit is contained in:
Bryan Boreham committed 2014-10-21 11:55:13 +01:00
1 parent dd27396ce0
commit 699b685969
1 file changed
+3 -2
+3 -2
View File
@@ -20,7 +20,8 @@ func genForm(method string, url string, data url.Values) (resp *http.Response, e
func TestHttp(t *testing.T) {
var (
container_id = "deadbeef"
success_test_name = "test1.weave."
test_domain = "weave.local."
success_test_name = "test1." + test_domain
test_addr1 = "10.0.2.1/24"
docker_ip = "9.8.7.6"
)
@@ -28,7 +29,7 @@ func TestHttp(t *testing.T) {
var zone = new(ZoneDb)
port := rand.Intn(10000) + 32768
fmt.Println("Http test on port", port)
go ListenHttp(zone, port)
go ListenHttp(test_domain, zone, port)
time.Sleep(100 * time.Millisecond) // Allow for http server to get going