aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/autoetc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/autoetc_test.go')
-rw-r--r--container/autoetc_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/container/autoetc_test.go b/container/autoetc_test.go
index 8d942f4f..32513bf3 100644
--- a/container/autoetc_test.go
+++ b/container/autoetc_test.go
@@ -2,14 +2,13 @@ package container
import (
"errors"
- "io/fs"
"os"
"testing"
)
func TestAutoEtcOp(t *testing.T) {
t.Run("nonrepeatable", func(t *testing.T) {
- wantErr := msg.WrapErr(fs.ErrInvalid, "autoetc is not repeatable")
+ wantErr := OpRepeatError("autoetc")
if err := (&AutoEtcOp{Prefix: "81ceabb30d37bbdb3868004629cb84e9"}).apply(&setupState{nonrepeatable: nrAutoEtc}, nil); !errors.Is(err, wantErr) {
t.Errorf("apply: error = %v, want %v", err, wantErr)
}