From 12a03f2b005235654397442b7841ffce4e9c9cb0 Mon Sep 17 00:00:00 2001 From: zhsj Date: Mon, 17 Oct 2022 23:08:04 +0800 Subject: [PATCH] function/stdlib: "Chunklist" test assumed it was running on a 64-bit architecture --- cty/function/stdlib/collection_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cty/function/stdlib/collection_test.go b/cty/function/stdlib/collection_test.go index ebcb6ea4..eac92d5d 100644 --- a/cty/function/stdlib/collection_test.go +++ b/cty/function/stdlib/collection_test.go @@ -2,6 +2,7 @@ package stdlib import ( "fmt" + "math" "testing" "github.com/zclconf/go-cty/cty" @@ -285,13 +286,13 @@ func TestChunklist(t *testing.T) { cty.ListValEmpty(cty.String), cty.PositiveInfinity, cty.NilVal, - `invalid size: value must be a whole number, between -9223372036854775808 and 9223372036854775807`, + fmt.Sprintf(`invalid size: value must be a whole number, between %d and %d`, math.MinInt, math.MaxInt), }, { cty.ListValEmpty(cty.String), cty.NumberFloatVal(1.5), cty.NilVal, - `invalid size: value must be a whole number, between -9223372036854775808 and 9223372036854775807`, + fmt.Sprintf(`invalid size: value must be a whole number, between %d and %d`, math.MinInt, math.MaxInt), }, }