Skip to content

Commit

Permalink
fix other test
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Nov 7, 2024
1 parent fa17534 commit dd7d7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/metal-api/internal/service/switch-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestSwitchMigrateConnectionsExistError(t *testing.T) {
body := bytes.NewBuffer(js)
req := httptest.NewRequest("POST", "/v1/switch/migrate", body)
req.Header.Add("Content-Type", "application/json")
container = injectEditor(log, container, req)
container = injectAdmin(log, container, req)
w := httptest.NewRecorder()
container.ServeHTTP(w, req)

Expand Down Expand Up @@ -240,7 +240,7 @@ func TestSwitchMigrateDifferentRacksError(t *testing.T) {
body := bytes.NewBuffer(js)
req := httptest.NewRequest("POST", "/v1/switch/migrate", body)
req.Header.Add("Content-Type", "application/json")
container = injectEditor(log, container, req)
container = injectAdmin(log, container, req)
w := httptest.NewRecorder()
container.ServeHTTP(w, req)

Expand Down

0 comments on commit dd7d7f7

Please sign in to comment.