From 22d98cf6ed87b27886d75383b7cc6c7c0a35c0eb Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sat, 24 Aug 2019 01:34:55 -0700 Subject: [PATCH] fix test --- core/unifi/unifi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/unifi/unifi_test.go b/core/unifi/unifi_test.go index 7ab1df31..b399995d 100644 --- a/core/unifi/unifi_test.go +++ b/core/unifi/unifi_test.go @@ -15,7 +15,7 @@ func TestNewUnifi(t *testing.T) { authReq, err := NewUnifi("user1", "pass2", url, false) a.NotNil(err) a.EqualValues(url, authReq.baseURL) - a.Contains(err.Error(), "authReq.Do(req):", "an invalid destination should product a .Do(req) error.") + a.Contains(err.Error(), "connection refused", "an invalid destination should product a connection error.") /* TODO: OPEN web server, check parameters posted, more. This test is incomplete. a.EqualValues(`{"username": "user1","password": "pass2"}`, string(post_params), "user/pass json parameters improperly encoded")