Skip to content

Commit

Permalink
fix(test): unit test failed on GOARCH=386 (#41)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
To fix the failed test on 32bit platforms

**Which issue(s) this PR resolves**:
Resolves #40 

**Please check the following list**:
- [x]  Does the affected code have corresponding tests, e.g. unit test?
- [ ] Does this introduce breaking changes that would require an
announcement or bumping the major version?
- [ ]  Do all new files have an appropriate license header?

<!-- If this is a security issue, please do not discuss on GitHub.
Please report any suspected or confirmed security issues directly to
https://github.com/notaryproject/tspclient-go/blob/main/CODEOWNERS. -->

Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao authored Dec 23, 2024
1 parent 90a141e commit 63a40da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/encoding/asn1/ber/ber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func TestConvertToDER(t *testing.T) {
var testBytes = make([]byte, 0xFFFFFFFF+8)
var testBytes = make([]byte, 0x7FFFFFFF)
// primitive identifier
testBytes[0] = 0x1f
testBytes[1] = 0xa0
Expand Down

0 comments on commit 63a40da

Please sign in to comment.