]> git.arvados.org - arvados.git/commit
Avoid http client race in test case.
authorTom Clegg <tclegg@veritasgenetics.com>
Wed, 9 May 2018 17:11:55 +0000 (13:11 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 9 May 2018 17:11:55 +0000 (13:11 -0400)
commit6c56f80642aae0ec0ff0bfc939ae33dd49e0ca6b
tree4d325815c83586e4a1abf78e2abb4122d14cc5d5
parent945621a7b37555462c67a1dca37f547624c4c90f
Avoid http client race in test case.

If we don't wait for Put() to return before returning from the test
case, CloseIdleConnections can cause Put() to fail, and the resulting
call to t.Error() panics the testing package.

"errType *url.Error, err Put
http://fakeaccountname.blob.127.0.0.1:42861/fakecontainername/e4d909c290d0fb1ca068ffaddf22cbd0:
net/http: HTTP/1.x transport connection broken: http:
CloseIdleConnections called"

"panic: Fail in goroutine after TestAzureBlobVolumeCreateBlobRace has completed"

No issue #

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
services/keepstore/azure_blob_volume_test.go