aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/output_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-29 02:04:09 +0900
committerOphestra <cat@gensokyo.uk>2025-08-29 02:04:09 +0900
commit4da6463135f63658365d837e8d7dd69f0ca1468e (patch)
treef68352b9b472c0883a3dc2e1911707ed46f8b232 /container/output_test.go
parenteb3385d490523262e26b6cb691a5e18a07a8b26d (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/output_test.go')
-rw-r--r--container/output_test.go10
1 files changed, 0 insertions, 10 deletions
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 {