test with locator expect

This commit is contained in:
Umputun
2018-01-28 16:24:18 -06:00
parent de2188f1a6
commit fc7b8456b1
+1 -1
View File
@@ -47,7 +47,7 @@ func TestServer_Create(t *testing.T) {
c := JSON{}
err = json.Unmarshal(b, &c)
assert.Nil(t, err)
loc := c["loc"].(map[string]interface{})
loc := c["locator"].(map[string]interface{})
assert.Equal(t, "radio-t", loc["site"])
assert.Equal(t, "https://radio-t.com/blah1", loc["url"])
assert.True(t, len(c["id"].(string)) > 8)