c136796308
testplanet executes cockroach and postgress tests parallel, therefore using http.DefaultClient is safe only as long as we don't modify it. TestActivationRouting modifies it (client.CheckRedirect=...), therefore it should use a local version instead of the default one. Problem reported by a jenkins build: ``` ================== WARNING: DATA RACE Write at 0x000003486af0 by goroutine 143: storj.io/storj/satellite/console/consoleweb_test.TestActivationRouting.func1() /home/jenkins/workspace/storj-testing-experiments/satellite/console/consoleweb/server_test.go:66 +0x378 storj.io/storj/private/testplanet.Run.func1.1() ... Previous read at 0x000003486af0 by goroutine 104: net/http.(*Client).checkRedirect() /usr/local/go/src/net/http/client.go:494 +0xd73 net/http.(*Client).do() /usr/local/go/src/net/http/client.go:691 +0xd31 net/http.(*Client).Do() /usr/local/go/src/net/http/client.go:593 +0x204 storj.io/storj/satellite/console/consoleweb_test.TestActivationRouting.func1.1() /home/jenkins/workspace/storj-testing-experiments/satellite/console/consoleweb/server_test.go:48 +0x1e5 storj.io/storj/satellite/console/consoleweb_test.TestActivationRouting.func1() /home/jenkins/workspace/storj-testing-experiments/satellite/console/consoleweb/server_test.go:74 +0x49d storj.io/storj/private/testplanet.Run.func1.1() ... ``` Change-Id: I73319a5a593e067b906ec1fda70a44ca1e5a49a2 |
||
---|---|---|
.. | ||
accounting | ||
admin | ||
analytics | ||
attribution | ||
audit | ||
buckets | ||
compensation | ||
console | ||
contact | ||
gc | ||
geoip | ||
gracefulexit | ||
inspector | ||
internalpb | ||
mailservice | ||
metabase | ||
metainfo | ||
metrics | ||
nodeapiversion | ||
nodeselection/uploadselection | ||
nodestats | ||
oidc | ||
orders | ||
overlay | ||
payments | ||
repair | ||
reputation | ||
revocation | ||
rewards | ||
satellitedb | ||
snopayouts | ||
admin.go | ||
api.go | ||
configlock_test.go | ||
core.go | ||
gc.go | ||
peer.go | ||
repairer.go |