Description: Fix test on 32bit arch Bug: https://github.com/ClusterHQ/flocker-go/issues/13 Bug-Debian: https://bugs.debian.org/849664 Forwarded: https://github.com/ClusterHQ/flocker-go/pull/14 Author: Aloïs Micard Last-Update: 2021-09-26 --- a/client_test.go +++ b/client_test.go @@ -19,9 +19,9 @@ func TestMaximumSizeIs1024Multiple(t *testing.T) { assert := assert.New(t) - n, err := strconv.Atoi(string(defaultVolumeSize)) + n, err := strconv.ParseInt(string(defaultVolumeSize), 10, 64) assert.NoError(err) - assert.Equal(0, n%1024) + assert.Equal(int64(0), n%1024) } func TestPost(t *testing.T) {