diff --git a/providers/asrockrack/mock_test.go b/providers/asrockrack/mock_test.go index 7f630ae9..091697ed 100644 --- a/providers/asrockrack/mock_test.go +++ b/providers/asrockrack/mock_test.go @@ -212,10 +212,7 @@ func bmcFirmwareUpgrade(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) // 2. upload firmware - case "/api/maintenance/firmware": - // make it fail to test the other URL - w.WriteHeader(http.StatusBadRequest) - case "/api/maintenance/firmware/firmware": + case "/api/maintenance/firmware", "/api/maintenance/firmware/firmware": // validate flash mode set if !fwUpgradeState.FlashModeSet {