Commit b6452569 authored by Anton Evangelatov's avatar Anton Evangelatov

accounts/keystore: comments above time.Sleep

parent 448abb61
...@@ -349,6 +349,7 @@ func TestUpdatedKeyfileContents(t *testing.T) { ...@@ -349,6 +349,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return return
} }
// needed so that modTime of `file` is different to its current value after forceCopyFile
time.Sleep(1000 * time.Millisecond) time.Sleep(1000 * time.Millisecond)
// Now replace file contents // Now replace file contents
...@@ -364,6 +365,7 @@ func TestUpdatedKeyfileContents(t *testing.T) { ...@@ -364,6 +365,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return return
} }
// needed so that modTime of `file` is different to its current value after forceCopyFile
time.Sleep(1000 * time.Millisecond) time.Sleep(1000 * time.Millisecond)
// Now replace file contents again // Now replace file contents again
...@@ -379,6 +381,7 @@ func TestUpdatedKeyfileContents(t *testing.T) { ...@@ -379,6 +381,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return return
} }
// needed so that modTime of `file` is different to its current value after ioutil.WriteFile
time.Sleep(1000 * time.Millisecond) time.Sleep(1000 * time.Millisecond)
// Now replace file contents with crap // Now replace file contents with crap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment