Skip to content

Commit

Permalink
accounts/keystore: comments above time.Sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Nov 16, 2017
1 parent 448abb6 commit b645256
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return
}

// needed so that modTime of `file` is different to its current value after forceCopyFile
time.Sleep(1000 * time.Millisecond)

// Now replace file contents
Expand All @@ -364,6 +365,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return
}

// needed so that modTime of `file` is different to its current value after forceCopyFile
time.Sleep(1000 * time.Millisecond)

// Now replace file contents again
Expand All @@ -379,6 +381,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return
}

// needed so that modTime of `file` is different to its current value after ioutil.WriteFile
time.Sleep(1000 * time.Millisecond)

// Now replace file contents with crap
Expand Down

0 comments on commit b645256

Please sign in to comment.