Skip to content

Commit a6c2fd5

Browse files
committed
Feedback updates
1 parent 9456ea1 commit a6c2fd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

toolkit/tools/pkg/imagecustomizerlib/convertimage_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func testConvertImageRawToCosi(t *testing.T, baseImageInfo testBaseImageInfo) {
123123
if baseImageInfo.Distro == baseImageDistroUbuntu {
124124
// This check should be removed once bootloader hard-reset support is added for Ubuntu.
125125
// It will fail once this support is added.
126-
assert.ErrorContains(t, err, "bootloader hard-reset API is not yet supported for Ubuntu images")
126+
assert.ErrorIs(t, err, ErrUbuntuUnsupportedBootloaderHardReset)
127127
return
128128
}
129129
if !assert.NoError(t, err) {
@@ -197,7 +197,7 @@ func testConvertImageRawToCosiWithCompression(t *testing.T, baseImageInfo testBa
197197
if baseImageInfo.Distro == baseImageDistroUbuntu {
198198
// This check should be removed once bootloader hard-reset support is added for Ubuntu.
199199
// It will fail once this support is added.
200-
assert.ErrorContains(t, err, "bootloader hard-reset API is not yet supported for Ubuntu images")
200+
assert.ErrorIs(t, err, ErrUbuntuUnsupportedBootloaderHardReset)
201201
return
202202
}
203203
if !assert.NoError(t, err) {

0 commit comments

Comments
 (0)