aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox/assert.go')
-rw-r--r--test/sandbox/assert.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go
index 150bef45..2decde8f 100644
--- a/test/sandbox/assert.go
+++ b/test/sandbox/assert.go
@@ -8,9 +8,11 @@ import (
var (
assert = log.New(os.Stderr, "sandbox: ", 0)
+ printfFunc = assert.Printf
fatalfFunc = assert.Fatalf
)
+func printf(format string, v ...any) { printfFunc(format, v...) }
func fatalf(format string, v ...any) { fatalfFunc(format, v...) }
func MustAssertMounts(name, hostMountsFile, wantFile string) {
@@ -53,7 +55,7 @@ func MustAssertMounts(name, hostMountsFile, wantFile string) {
e, &want[i])
}
- assert.Printf("%s", e)
+ printf("%s", e)
i++
}); err != nil {
fatalf("cannot iterate mounts: %v", err)