diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-13 00:00:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-13 00:00:58 +0900 |
| commit | f38ba7e923e9017040c67f290e4d8db29685e3ee (patch) | |
| tree | cf57ff6b5b39c70e678d274e00379272378a2f81 /test/sandbox/assert.go | |
| parent | d22145a3926de9710d5bd76ddfde093baca0b51d (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/assert.go')
| -rw-r--r-- | test/sandbox/assert.go | 2 |
1 files changed, 1 insertions, 1 deletions
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]) } |
