Skip to content

Commit 473c10f

Browse files
committedAug 21, 2022
Fix test on 32 bit arch
And add CI to test on i386.
1 parent 360c9e3 commit 473c10f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
{
2525
"name": "Test",
2626
"run": "go test -v ./..."
27+
},
28+
{
29+
"name": "Test on 32bit",
30+
"if": "runner.os == 'Linux'",
31+
"run": "GOARCH=386 go test -v ./..."
2732
}
2833
]
2934
}

‎error_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestParseError(t *testing.T) {
122122
},
123123
{
124124
&struct{ Int int }{},
125-
fmt.Sprintf("Int = %d", uint(math.MaxInt64+1)),
125+
fmt.Sprintf("Int = %d", uint64(math.MaxInt64+1)),
126126
`| toml: error: 9223372036854775808 is out of range for int64
127127
|
128128
| At line 1, column 6-25:

0 commit comments

Comments
 (0)
Please sign in to comment.