From a462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 01:12:02 +0900 Subject: container: repeat and impossible state types This moves repeated Op errors and impossible internal state errors off of msg. Signed-off-by: Ophestra --- container/initbind_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/initbind_test.go') diff --git a/container/initbind_test.go b/container/initbind_test.go index aedbad5e..38e664d7 100644 --- a/container/initbind_test.go +++ b/container/initbind_test.go @@ -143,7 +143,7 @@ func TestBindMountOp(t *testing.T) { t.Run("unreachable", func(t *testing.T) { t.Run("nil sourceFinal not optional", func(t *testing.T) { - wantErr := msg.WrapErr(os.ErrClosed, "impossible bind state reached") + wantErr := OpStateError("bind") if err := new(BindMountOp).apply(nil, nil); !errors.Is(err, wantErr) { t.Errorf("apply: error = %v, want %v", err, wantErr) } -- cgit v1.3.1