Skip to content

Commit

Permalink
bmc/firmware: import bmclib/errors as bmclibErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Nov 20, 2023
1 parent 6bc70fe commit 8f9cd92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bmc/firmware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func TestFirmwareInstallUploaded(t *testing.T) {
providersAttempted int
}{
{"success with metadata", common.SlugBIOS, "1234", "5678", nil, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, "1234", "", errors.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, "1234", "", bmclibErrs.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with context timeout", common.SlugBIOS, "1234", "", context.DeadlineExceeded, 1 * time.Nanosecond, "foo", 1},
}

Expand Down Expand Up @@ -325,7 +325,7 @@ func TestFirmwareUpload(t *testing.T) {
providersAttempted int
}{
{"success with metadata", common.SlugBIOS, nil, "1234", nil, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, nil, "1234", errors.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, nil, "1234", bmclibErrs.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with context timeout", common.SlugBIOS, nil, "1234", context.DeadlineExceeded, 1 * time.Nanosecond, "foo", 1},
}

Expand Down Expand Up @@ -430,7 +430,7 @@ func TestFirmwareInstallSteps(t *testing.T) {
providersAttempted int
}{
{"success with metadata", common.SlugBIOS, []constants.FirmwareInstallStep{constants.FirmwareInstallStepUpload, constants.FirmwareInstallStepInstallStatus}, nil, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, nil, errors.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with metadata", common.SlugBIOS, nil, bmclibErrs.ErrNon200Response, 5 * time.Second, "foo", 1},
{"failure with context timeout", common.SlugBIOS, nil, context.DeadlineExceeded, 1 * time.Nanosecond, "foo", 1},
}

Expand Down

0 comments on commit 8f9cd92

Please sign in to comment.