From 69e1d530e397817e9be4dfad74f8ca0bd2892596 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Mon, 3 Sep 2018 15:58:29 +0300 Subject: [PATCH] update tests --- v1/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/client_test.go b/v1/client_test.go index 5f7d01c..c646122 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -326,7 +326,7 @@ func TestMgClient_WsMeta(t *testing.T) { t.Errorf("%v", err) } - resUrl := fmt.Sprintf("%s%s%s%s", c.URL, prefix, "/ws?events=", strings.Join(events[:], ",")) + resUrl := fmt.Sprintf("%s%s%s%s", strings.Replace(c.URL, "https", "ws", 1), prefix, "/ws?events=", strings.Join(events[:], ",")) resToken := c.Token assert.Equal(t, resUrl, url)