Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install:
# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
- make go-get
- go install golang.org/x/tools/cmd/[email protected]
- go install github.com/fjl/[email protected].0
- go install github.com/fjl/[email protected].1
- echo "[WARN] - workaround for the GOPATH:"
# sometimes Travis decides to respect GOPATH and creates a symlink, thus we have || true for such cases
- rm $GOPATH/src/github.com/harmony-one/harmony || true;
Expand Down
7 changes: 5 additions & 2 deletions p2p/stream/common/requestmanager/requestmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ func TestRequestManager_RemoveStream(t *testing.T) {
t.Errorf("unexpected error: %v", errors.New("stream removed when doing request"))
}

if ts.rm.streams.Length() != 2 || ts.rm.available.Length() != 2 {
t.Errorf("unexpected stream size")
if l := ts.rm.streams.Length(); l != 2 {
t.Errorf("unexpected stream size, expected 2, got %d", l)
}
if l := ts.rm.available.Length(); l != 2 {
t.Errorf("unexpected stream size, expected 2, got %d", l)
}
}

Expand Down