diff --git a/api/v2/routes_swarm_test.go b/api/v2/routes_swarm_test.go index eb849295f..0f49f79cb 100644 --- a/api/v2/routes_swarm_test.go +++ b/api/v2/routes_swarm_test.go @@ -84,4 +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 { + t.Fatal(err) + } }