mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-25 19:56:46 +00:00
update account isolation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user