aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/internal/sandbox/assert.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/internal/sandbox/assert.go')
-rw-r--r--test/internal/sandbox/assert.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/internal/sandbox/assert.go b/test/internal/sandbox/assert.go
index 343c1586..e6fe926b 100644
--- a/test/internal/sandbox/assert.go
+++ b/test/internal/sandbox/assert.go
@@ -1,11 +1,11 @@
//go:build testtool
-/*
-Package sandbox provides utilities for checking sandbox outcome.
-
-This package must never be used outside integration tests, there is a much better native implementation of mountinfo
-in the public sandbox/vfs package. Files in this package are excluded by the build system to prevent accidental misuse.
-*/
+// Package sandbox provides utilities for checking sandbox outcome.
+//
+// This package must never be used outside integration tests, there is a much
+// better native implementation of mountinfo in the public sandbox/vfs package.
+// Files in this package are excluded by the build system to prevent accidental
+// misuse.
package sandbox
import (
@@ -204,8 +204,8 @@ func MustCheckFilter(pid int, want string) {
return
}
- var perr *ptraceError
- if !errors.As(err, &perr) {
+ perr, ok := errors.AsType[*ptraceError](err)
+ if !ok {
fatalf("%s", err)
}
switch perr.op {