diff options
Diffstat (limited to 'container/autoroot_test.go')
| -rw-r--r-- | container/autoroot_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/container/autoroot_test.go b/container/autoroot_test.go index fcfc3f29..13319de7 100644 --- a/container/autoroot_test.go +++ b/container/autoroot_test.go @@ -2,14 +2,13 @@ package container import ( "errors" - "io/fs" "os" "testing" ) func TestAutoRootOp(t *testing.T) { t.Run("nonrepeatable", func(t *testing.T) { - wantErr := msg.WrapErr(fs.ErrInvalid, "autoroot is not repeatable") + wantErr := OpRepeatError("autoroot") if err := new(AutoRootOp).apply(&setupState{nonrepeatable: nrAutoRoot}, nil); !errors.Is(err, wantErr) { t.Errorf("apply: error = %v, want %v", err, wantErr) } |
