mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-19 11:20:18 +02:00
fix get test expectation
This commit is contained in:
@@ -754,8 +754,8 @@ func Test_SetupKeys_Get(t *testing.T) {
|
|||||||
|
|
||||||
apiHandler.ServeHTTP(recorder, req)
|
apiHandler.ServeHTTP(recorder, req)
|
||||||
|
|
||||||
content, noResponseExpected := readResponse(t, recorder, tc.expectedStatus, user.expectResponse)
|
content, expectRespnose := readResponse(t, recorder, tc.expectedStatus, user.expectResponse)
|
||||||
if noResponseExpected {
|
if !expectRespnose {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
got := &api.SetupKey{}
|
got := &api.SetupKey{}
|
||||||
|
Reference in New Issue
Block a user