X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e028e5daadb83ef695b7e0b1ef6bd45eef4cfc29..d1e55b0176e20451df3ad11f7a0c24c0fe666738:/services/keepstore/azure_blob_volume_test.go diff --git a/services/keepstore/azure_blob_volume_test.go b/services/keepstore/azure_blob_volume_test.go index c3fea9a80d..24790c25d2 100644 --- a/services/keepstore/azure_blob_volume_test.go +++ b/services/keepstore/azure_blob_volume_test.go @@ -339,6 +339,8 @@ func TestAzureBlobVolumeWithGeneric(t *testing.T) { http.DefaultTransport = &http.Transport{ Dial: (&azStubDialer{}).Dial, } + azureWriteRaceInterval = time.Millisecond + azureWriteRacePollTime = time.Nanosecond DoGenericVolumeTests(t, func(t *testing.T) TestableVolume { return NewTestableAzureBlobVolume(t, false, azureStorageReplication) }) @@ -351,6 +353,8 @@ func TestReadonlyAzureBlobVolumeWithGeneric(t *testing.T) { http.DefaultTransport = &http.Transport{ Dial: (&azStubDialer{}).Dial, } + azureWriteRaceInterval = time.Millisecond + azureWriteRacePollTime = time.Nanosecond DoGenericVolumeTests(t, func(t *testing.T) TestableVolume { return NewTestableAzureBlobVolume(t, true, azureStorageReplication) }) @@ -423,7 +427,7 @@ func TestAzureBlobVolumeCreateBlobRaceDeadline(t *testing.T) { azureWriteRaceInterval = 2 * time.Second azureWriteRacePollTime = 5 * time.Millisecond - v.PutRaw(TestHash, []byte{}) + v.PutRaw(TestHash, nil) buf := new(bytes.Buffer) v.IndexTo("", buf)