adjust remote tests, remove legacy mongo tests

This commit is contained in:
Umputun
2019-06-25 20:06:30 -05:00
parent db6c387fe9
commit 126d2d93da
3 changed files with 9 additions and 19 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ func TestRemote_FailedStatus(t *testing.T) {
req := GetRequest{Locator: store.Locator{URL: "http://example.com/url"}, CommentID: "site"}
_, err := c.Get(req)
assert.EqualError(t, err, "bad status 400 for store.get")
assert.EqualError(t, err, "bad status 400 Bad Request for store.get")
}
func TestRemote_Update(t *testing.T) {
@@ -160,7 +160,7 @@ func TestRemote_Delete(t *testing.T) {
}
func TestRemote_Close(t *testing.T) {
ts := testServer(t, `{"method":"store.close","params":null,"id":1}`, `{}`)
ts := testServer(t, `{"method":"store.close","id":1}`, `{}`)
defer ts.Close()
c := Remote{Client: remote.Client{API: ts.URL, Client: http.Client{}}}
err := c.Close()