From f38ba7e923e9017040c67f290e4d8db29685e3ee Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 13 Mar 2025 00:00:58 +0900 Subject: test/sandbox: bypass fields A field is bypassed if it contains a single null byte. This will never appear in the text format so is safe to use. Signed-off-by: Ophestra --- test/sandbox/assert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sandbox/assert.go') diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go index 8e446268..fff26047 100644 --- a/test/sandbox/assert.go +++ b/test/sandbox/assert.go @@ -60,7 +60,7 @@ func MustAssertMounts(name, hostMountsFile, wantFile string) { if i == len(want) { fatalf("got more than %d entries", i) } - if *e != want[i] { + if !e.Is(&want[i]) { fatalf("entry %d\n got: %s\nwant: %s", i, e, &want[i]) } -- cgit v1.3.1