Merge pull request #8 from gwinn/master

update tests
This commit is contained in:
Alex Lushpai 2018-09-03 15:59:04 +03:00 committed by GitHub
commit f7c6a1e9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ func TestMgClient_WsMeta(t *testing.T) {
t.Errorf("%v", err) 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 resToken := c.Token
assert.Equal(t, resUrl, url) assert.Equal(t, resUrl, url)