diff --git a/internal/test/helpers.go b/internal/test/helpers.go index a34dec347..1b845c586 100644 --- a/internal/test/helpers.go +++ b/internal/test/helpers.go @@ -114,6 +114,7 @@ func TestRouteWithReply(t *testing.T, api http.Handler, external bool, method, p if expectedJSON == "" { require.Lenf(t, replyJSON, 0, "%s: expected no response body, but got:\n%s", path, replyJSON) + return } if expectedJSON == "?" {