aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/path_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-05 20:13:19 +0900
committerOphestra <cat@gensokyo.uk>2025-11-05 20:13:19 +0900
commit9fd97e71d0330d6b6509f28686cf53825bc80941 (patch)
tree35774cbde4c1abd9967a1de98341a732ff3b464f /container/path_test.go
parentfba201c9953a490da914b09e09eaaa697a4b36e1 (diff)
treewide: fit test untyped int literals in 32-bit
This enables hakurei test suite to run on 32-bit targets. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/path_test.go')
-rw-r--r--container/path_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/container/path_test.go b/container/path_test.go
index 5af4c821..d1754559 100644
--- a/container/path_test.go
+++ b/container/path_test.go
@@ -173,8 +173,8 @@ func TestProcPaths(t *testing.T) {
}
})
t.Run("fd", func(t *testing.T) {
- want := "/host/proc/self/fd/9223372036854775807"
- if got := hostProc.fd(math.MaxInt64); got != want {
+ want := "/host/proc/self/fd/2147483647"
+ if got := hostProc.fd(math.MaxInt32); got != want {
t.Errorf("stdout: %q, want %q", got, want)
}
})