Support less granular mtime

pull/9490/head
Edd Robinson 2018-02-27 16:12:59 +00:00
parent bf88bbc232
commit 45af822200
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ func TestEngine_LastModified(t *testing.T) {
// Artificial sleep added due to filesystems caching the mod time
// of files. This prevents the WAL last modified time from being
// returned and newer than the filestore's mod time.
time.Sleep(400 * time.Millisecond)
time.Sleep(2 * time.Second) // Covers most filesystems.
if err := e.WriteSnapshot(); err != nil {
t.Fatalf("failed to snapshot: %s", err.Error())