1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: =?utf-8?q?Mart=C3=ADn_Ferrari?= <tincho@debian.org>
Date: Sat, 29 Jul 2017 14:00:55 +0000
Subject: Avoid network access during tests
Forwarded: no
Use an invalid address to avoid DNS lookups that were meant to fail.
---
openstack/testing/client_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openstack/testing/client_test.go b/openstack/testing/client_test.go
index 6f94e44..695199f 100644
--- a/openstack/testing/client_test.go
+++ b/openstack/testing/client_test.go
@@ -307,9 +307,9 @@ func testAuthenticatedClientFails(t *testing.T, endpoint string) {
}
func TestAuthenticatedClientV3Fails(t *testing.T) {
- testAuthenticatedClientFails(t, "http://bad-address.example.com/v3")
+ testAuthenticatedClientFails(t, "http://:::/v3")
}
func TestAuthenticatedClientV2Fails(t *testing.T) {
- testAuthenticatedClientFails(t, "http://bad-address.example.com/v2.0")
+ testAuthenticatedClientFails(t, "http://:::/v2.0")
}
|