Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Prevent deadlock in reading notifications for integration test (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
keegancsmith authored Aug 7, 2018
1 parent 35dd318 commit bf90fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ install:

script:
- cd $TRAVIS_BUILD_DIR
- go test -race -v ./...
- go test -timeout 5m -race -v ./...
2 changes: 1 addition & 1 deletion langserver/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func integrationTest(
addr, done := startServer(t, h)
defer done()

notifies := make(chan *jsonrpc2.Request)
notifies := make(chan *jsonrpc2.Request, 10)
conn := dialServer(t, addr, jsonrpc2.HandlerWithError(func(_ context.Context, _ *jsonrpc2.Conn, req *jsonrpc2.Request) (interface{}, error) {
notifies <- req
return nil, nil
Expand Down

0 comments on commit bf90fac

Please sign in to comment.