diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-02-26 01:40:59 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-02-26 01:40:59 +0800 |
commit | d1311c53eee916ae8472a3b7eaf40b5e94f7675f (patch) | |
tree | d7958794573db71d0987c52e750b8a8c763b42b1 /accounts/accounts_test.go | |
parent | b296b36d2b2aaa2f81d26b3c133ace2714c58a7d (diff) | |
download | go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.gz go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.zst go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.zip |
Address pull request comments
* Use RWMutex instead of Mutex
* Use time.Duration instead of int for unlock time
* Use time.After with select instead of time.Sleep
Diffstat (limited to 'accounts/accounts_test.go')
-rw-r--r-- | accounts/accounts_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 8f036fd1f..44d1d72f1 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -21,7 +21,7 @@ func TestAccountManager(t *testing.T) { } // Cleanup - time.Sleep(time.Millisecond * time.Duration(150)) // wait for locking + time.Sleep(time.Millisecond * 150) // wait for locking accounts, err := am.Accounts() if err != nil { |