diff --git a/web/api/v1/api_test.go b/web/api/v1/api_test.go index dae408bca..044cd171d 100644 --- a/web/api/v1/api_test.go +++ b/web/api/v1/api_test.go @@ -2892,7 +2892,9 @@ func testEndpoints(t *testing.T, api *API, tr *testTargetRetriever, es storage.E if test.zeroFunc != nil { test.zeroFunc(res.data) } - assertAPIResponse(t, res.data, test.response) + if test.response != nil { + assertAPIResponse(t, res.data, test.response) + } } if test.responseAsJSON != "" {