X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c15f086483884fb21d04ceac0ea8bd96308051bd..07a3aa9651168756a6f108821f6ef10ea4ba8144:/services/keepstore/volume_unix_test.go diff --git a/services/keepstore/volume_unix_test.go b/services/keepstore/volume_unix_test.go index 7a1c06c816..d6aeac6185 100644 --- a/services/keepstore/volume_unix_test.go +++ b/services/keepstore/volume_unix_test.go @@ -119,7 +119,11 @@ func TestPutTouch(t *testing.T) { } // Sleep for 1s, then put the block again. The volume // should report a more recent mtime. + // // TODO(twp): this would be better handled with a mock Time object. + // Alternatively, set the mtime manually to some moment in the past + // (maybe a v.SetMtime method?) + // time.Sleep(time.Second) if err := v.Put(TEST_HASH, TEST_BLOCK); err != nil { t.Error(err)