From 9fd97e71d0330d6b6509f28686cf53825bc80941 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 5 Nov 2025 20:13:19 +0900 Subject: treewide: fit test untyped int literals in 32-bit This enables hakurei test suite to run on 32-bit targets. Signed-off-by: Ophestra --- container/path_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/path_test.go') 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) } }) -- cgit v1.3.1