From b64525694b81d4f278b8d4690d29416844c72349 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 16 Nov 2017 15:01:02 +0100 Subject: [PATCH] accounts/keystore: comments above time.Sleep --- accounts/keystore/account_cache_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go index 9bbc1b2efe..fe9233c046 100644 --- a/accounts/keystore/account_cache_test.go +++ b/accounts/keystore/account_cache_test.go @@ -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 @@ -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 @@ -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