update account isolation

This commit is contained in:
pascal
2026-04-20 16:33:24 +02:00
parent 0b04c0d03b
commit 470307079b
13 changed files with 190 additions and 21 deletions

View File

@@ -106,6 +106,10 @@ func ReadResponse(t *testing.T, recorder *httptest.ResponseRecorder, expectedSta
}
if !expectResponse {
if recorder.Code == http.StatusOK || recorder.Code == http.StatusCreated {
t.Fatalf("expected unauthorized/error status code but got %d, content: %s",
recorder.Code, string(content))
}
return nil, false
}