File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ import (
7
7
)
8
8
9
9
const (
10
- pingEntrypoint = "http://localhost:8080/ping"
10
+ localhost = "127.0.0.1"
11
+ pingEntrypoint = "http://" + localhost + ":8080/ping"
11
12
pingTargetUrl = "target:8080/ping"
12
13
pingUrl = pingEntrypoint + "?address=" + pingTargetUrl
13
14
14
- volumefileEntrypoint = "http://localhost:8080/volumefile"
15
+ volumefileEntrypoint = "http://" + localhost + " :8080/volumefile"
15
16
volumeUrl = volumefileEntrypoint + "?filename="
16
17
)
17
18
@@ -45,7 +46,7 @@ func TestSimpleNetworkFail(t *testing.T) {
45
46
specRef : "Networks-top-level-element" ,
46
47
}
47
48
h .TestUpDown (func () {
48
- actual := h .getHttpBody ("http://localhost:8080/ping ?address=notatarget:8080/ping" )
49
+ actual := h .getHttpBody (pingEntrypoint + " ?address=notatarget:8080/ping" )
49
50
expected := jsonResponse ("Could not reach address: notatarget:8080/ping" )
50
51
h .Check (expected , actual )
51
52
})
You can’t perform that action at this time.
0 commit comments