From fc7b8456b18dc03693505f69fe1596b3f1f7124d Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 28 Jan 2018 16:24:18 -0600 Subject: [PATCH] test with locator expect --- app/rest/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/server_test.go b/app/rest/server_test.go index 018998f0..6da07808 100644 --- a/app/rest/server_test.go +++ b/app/rest/server_test.go @@ -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)