Source: golang-github-backblaze-blazer Version: 0.9.0-1 Tags: patch Hi there,
I noticed some failures in deb-ci on armhf[0] and i386[1], and had a look at the log: 148s # github.com/Backblaze/blazer/b2 [github.com/Backblaze/blazer/b2.test] 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:25:23: cannot use 1700000001000 (untyped int constant) as int value in map literal (overflows) 148s src/github.com/Backblaze/blazer/b2/file_info_by_name_test.go:26:158: cannot use 1735689600000 (untyped int constant) as int value in map literal (overflows) It's reproducible on any arch with: GOOS=linux GOARCH=386 go test -c ./b2 I've included a patch that fixes it, but it is also fixed upstream[2] in v0.10.1 (as part of a quite large PR). 0: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testing/armhf/78124602/ 1: https://ci.debian.net/packages/g/golang-github-backblaze-blazer/testing/i386/78122246/ 2: https://github.com/Backblaze/blazer/issues/150 diff --git c/b2/file_info_by_name_test.go i/b2/file_info_by_name_test.go index d0a2ee3..e590e50 100644 --- c/b2/file_info_by_name_test.go +++ i/b2/file_info_by_name_test.go @@ -22,8 +22,8 @@ func TestGetFileInfoByName(t *testing.T) { "fileId": "file-id", "fileName": "dir/file.txt", "action": "upload", "contentLength": 7, "contentSha1": "a-sha1", "contentType": "text/plain", "fileInfo": map[string]string{"source": "by-name", "src_last_modified_millis": "1700000000000"}, - "uploadTimestamp": 1700000001000, - "fileRetention": map[string]interface{}{"isClientAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governance", "retainUntilTimestamp": 1735689600000}}, + "uploadTimestamp": int64(1700000001000), + "fileRetention": map[string]interface{}{"isClientAuthorizedToRead": true, "value": map[string]interface{}{"mode": "governance", "retainUntilTimestamp": int64(1735689600000)}}, "legalHold": map[string]interface{}{"isClientAuthorizedToRead": true, "value": "on"}, }}}, {name: "missing file", notFound: true}, -- -rob

