Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Fix compile error on 386 and run unit tests with GOARCH=386 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vcabbage committed Jun 22, 2018
1 parent 7d3e151 commit 751cf0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -20,7 +20,12 @@ test:
go test -tags gofuzz -v -race ./...

integration:
go test -tags "integration pkgerrors" -count=1 -v -race ./...
go test -tags "integration pkgerrors" -count=1 -v -race .

test386:
TEST_CORPUS=1 go test -tags "gofuzz" -count=1 -v .

ci: test386 coverage

coverage:
TEST_CORPUS=1 go test -tags "integration gofuzz" -cover -coverprofile=cover.out -v
2 changes: 1 addition & 1 deletion client.go
Expand Up @@ -194,7 +194,7 @@ func SessionMaxLinks(n int) SessionOption {
if n < 1 {
return errorNew("max sessions cannot be less than 1")
}
if n > 4294967296 {
if int64(n) > 4294967296 {
return errorNew("max sessions cannot be greater than 4294967296")
}
s.handleMax = uint32(n - 1)
Expand Down

0 comments on commit 751cf0d

Please sign in to comment.