From 4da6463135f63658365d837e8d7dd69f0ca1468e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 02:04:09 +0900 Subject: container/init: unwrap path errors These are also now handled by init properly, so wrapping them in self is meaningless and unreachable. Signed-off-by: Ophestra --- container/output_test.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'container/output_test.go') diff --git a/container/output_test.go b/container/output_test.go index 3fb2ac74..f6d629e3 100644 --- a/container/output_test.go +++ b/container/output_test.go @@ -58,16 +58,6 @@ func TestWrapErr(t *testing.T) { t.Errorf("wrapErrSuffix: %v", err) } }, syscall.ENOTRECOVERABLE, []any{"\x00\x00", syscall.ENOTRECOVERABLE}}, - {"self nil", func(t *testing.T) { - if err := wrapErrSelf(nil); err != nil { - t.Errorf("wrapErrSelf: %v", err) - } - }, nil, nil}, - {"self val", func(t *testing.T) { - if err := wrapErrSelf(syscall.ENOTRECOVERABLE); err != syscall.ENOTRECOVERABLE { - t.Errorf("wrapErrSelf: %v", err) - } - }, syscall.ENOTRECOVERABLE, []any{"state not recoverable"}}, } for _, tc := range testCases { -- cgit v1.3.1