From 8f9cd92dedc0b483c9c8b9e48396e439cb2b98b3 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Mon, 20 Nov 2023 15:34:24 +0100 Subject: [PATCH] bmc/firmware: import bmclib/errors as bmclibErrors --- bmc/firmware_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bmc/firmware_test.go b/bmc/firmware_test.go index 3f4d300f..be19f222 100644 --- a/bmc/firmware_test.go +++ b/bmc/firmware_test.go @@ -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}, } @@ -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}, } @@ -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}, }