diff --git a/api/v2/routes_swarm_test.go b/api/v2/routes_swarm_test.go index 0f49f79cb..ab82e91a0 100644 --- a/api/v2/routes_swarm_test.go +++ b/api/v2/routes_swarm_test.go @@ -84,7 +84,7 @@ func Test_Routes_Swarm(t *testing.T) { if apiResp.Code != 200 { t.Fatal("bad api response status code from /v2/swarm/upload") } - if _, err := api.dbm.Upload.FindUploadByHashAndNetwork(apiResp.Response, "etherswarm"); err != nil { + if _, err := api.upm.FindUploadByHashAndNetwork(apiResp.Response, "etherswarm"); err != nil { t.Fatal(err) } }