From 7c3e4a1516c2cfe57d19ed73d187f54671f0f2ed Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Thu, 28 Nov 2024 15:50:19 +0100 Subject: [PATCH] fix get test expectation --- management/server/http/setupkeys_handler_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/server/http/setupkeys_handler_integration_test.go b/management/server/http/setupkeys_handler_integration_test.go index d946a7a97..0759c16e8 100644 --- a/management/server/http/setupkeys_handler_integration_test.go +++ b/management/server/http/setupkeys_handler_integration_test.go @@ -754,8 +754,8 @@ func Test_SetupKeys_Get(t *testing.T) { apiHandler.ServeHTTP(recorder, req) - content, noResponseExpected := readResponse(t, recorder, tc.expectedStatus, user.expectResponse) - if noResponseExpected { + content, expectRespnose := readResponse(t, recorder, tc.expectedStatus, user.expectResponse) + if !expectRespnose { return } got := &api.SetupKey{}