[test bug] travis can't catch right test port
AgwaB opened this issue · 0 comments
WARNING: DATA RACE
Write at 0x00c00010e7b0 by goroutine 54:
github.com/DE-labtory/cleisthenes_test.setUpHandler.func1()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:192 +0x470
github.com/DE-labtory/cleisthenes_test.(*MockHandler).ServeRequest()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:46 +0x69
github.com/DE-labtory/cleisthenes.(*GrpcConnection).Start()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn.go:121 +0x362
github.com/DE-labtory/cleisthenes_test.handleMessage.func1()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:217 +0x3e
Previous write at 0x00c00010e7b0 by goroutine 52:
github.com/DE-labtory/cleisthenes_test.setUpHandler.func1()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:192 +0x470
github.com/DE-labtory/cleisthenes_test.(*MockHandler).ServeRequest()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:46 +0x69
github.com/DE-labtory/cleisthenes.(*GrpcConnection).Start()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn.go:121 +0x362
github.com/DE-labtory/cleisthenes_test.handleMessage.func1()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:217 +0x3e
Goroutine 54 (running) created at:
github.com/DE-labtory/cleisthenes_test.handleMessage()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:216 +0x151
github.com/DE-labtory/cleisthenes_test.TestConnectionPool_ShareMessage()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:286 +0x2bd
testing.tRunner()
/home/travis/.gimme/versions/go1.12.linux.amd64/src/testing/testing.go:865 +0x163
Goroutine 52 (running) created at:
github.com/DE-labtory/cleisthenes_test.handleMessage()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:216 +0x151
github.com/DE-labtory/cleisthenes_test.TestConnectionPool_ShareMessage()
/home/travis/gopath/src/github.com/DE-labtory/cleisthenes/conn_test.go:286 +0x2bd
testing.tRunner()
/home/travis/.gimme/versions/go1.12.linux.amd64/src/testing/testing.go:865 +0x163
--- FAIL: TestConnectionPool_ShareMessage (3.00s)
testing.go:809: race detected during execution of test