X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b17b1ad22bd3cf518eb1b3657f62768b60c7db25..e03666a151bc6cd371d371ef36d787e462f4f51d:/services/datamanager/keep/keep_test.go diff --git a/services/datamanager/keep/keep_test.go b/services/datamanager/keep/keep_test.go index 2286453b2f..6698849848 100644 --- a/services/datamanager/keep/keep_test.go +++ b/services/datamanager/keep/keep_test.go @@ -43,7 +43,7 @@ func (s *KeepSuite) TestSendTrashLists(c *C) { defer server.Close() tl := map[string]TrashList{ - server.URL: TrashList{TrashRequest{"000000000000000000000000deadbeef", 99}}} + server.URL: {TrashRequest{"000000000000000000000000deadbeef", 99}}} arv := arvadosclient.ArvadosClient{ApiToken: "abc123"} kc := keepclient.KeepClient{Arvados: &arv, Client: &http.Client{}} @@ -51,7 +51,7 @@ func (s *KeepSuite) TestSendTrashLists(c *C) { map[string]string{"xxxx": server.URL}, map[string]string{}) - err := SendTrashLists(&kc, tl) + err := SendTrashLists(nil, &kc, tl, false) c.Check(err, IsNil) @@ -70,7 +70,7 @@ func (tse *TestHandlerError) ServeHTTP(writer http.ResponseWriter, req *http.Req func sendTrashListError(c *C, server *httptest.Server) { tl := map[string]TrashList{ - server.URL: TrashList{TrashRequest{"000000000000000000000000deadbeef", 99}}} + server.URL: {TrashRequest{"000000000000000000000000deadbeef", 99}}} arv := arvadosclient.ArvadosClient{ApiToken: "abc123"} kc := keepclient.KeepClient{Arvados: &arv, Client: &http.Client{}} @@ -78,7 +78,7 @@ func sendTrashListError(c *C, server *httptest.Server) { map[string]string{"xxxx": server.URL}, map[string]string{}) - err := SendTrashLists(&kc, tl) + err := SendTrashLists(nil, &kc, tl, false) c.Check(err, NotNil) c.Check(err[0], NotNil) @@ -101,7 +101,7 @@ type APITestData struct { } func (s *KeepSuite) TestGetKeepServers_UnsupportedServiceType(c *C) { - testGetKeepServersFromAPI(c, APITestData{1, "notadisk", 200}, "Found no keepservices with the supported type disk") + testGetKeepServersFromAPI(c, APITestData{1, "notadisk", 200}, "Found no keepservices with the service type disk") } func (s *KeepSuite) TestGetKeepServers_ReceivedTooFewServers(c *C) {