X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5b8507cca827ef8de5d2bdc74dd74659f2c67e39..76683cdf4d90868944a51e6b433dce3ff8f5495e:/services/keepstore/azure_blob_volume_test.go?ds=sidebyside diff --git a/services/keepstore/azure_blob_volume_test.go b/services/keepstore/azure_blob_volume_test.go index a4c6e62a7d..a240c23e16 100644 --- a/services/keepstore/azure_blob_volume_test.go +++ b/services/keepstore/azure_blob_volume_test.go @@ -60,11 +60,11 @@ func newAzStubHandler() *azStubHandler { } func (h *azStubHandler) TouchWithDate(container, hash string, t time.Time) { - if blob, ok := h.blobs[container+"|"+hash]; !ok { + blob, ok := h.blobs[container+"|"+hash] + if !ok { return - } else { - blob.Mtime = t } + blob.Mtime = t } func (h *azStubHandler) PutRaw(container, hash string, data []byte) { @@ -427,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)