Skip to content

Commit bf90fac

Browse files
authored
Prevent deadlock in reading notifications for integration test (sourcegraph#303)
1 parent 35dd318 commit bf90fac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ install:
1313

1414
script:
1515
- cd $TRAVIS_BUILD_DIR
16-
- go test -race -v ./...
16+
- go test -timeout 5m -race -v ./...

langserver/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func integrationTest(
355355
addr, done := startServer(t, h)
356356
defer done()
357357

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

0 commit comments

Comments
 (0)