From 473c10f5a3a879603fb084c86a9a3b0508a85813 Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Sun, 21 Aug 2022 13:50:20 +0800 Subject: [PATCH] Fix test on 32 bit arch And add CI to test on i386. --- .github/workflows/test.yml | 5 +++++ error_test.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c4cd042..0e8de097 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,11 @@ { "name": "Test", "run": "go test -v ./..." + }, + { + "name": "Test on 32bit", + "if": "runner.os == 'Linux'", + "run": "GOARCH=386 go test -v ./..." } ] } diff --git a/error_test.go b/error_test.go index dd147a3b..cd95263c 100644 --- a/error_test.go +++ b/error_test.go @@ -122,7 +122,7 @@ func TestParseError(t *testing.T) { }, { &struct{ Int int }{}, - fmt.Sprintf("Int = %d", uint(math.MaxInt64+1)), + fmt.Sprintf("Int = %d", uint64(math.MaxInt64+1)), `| toml: error: 9223372036854775808 is out of range for int64 | | At line 1, column 6-25: