aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts_test.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-02-26 01:40:59 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-02-26 01:40:59 +0800
commitd1311c53eee916ae8472a3b7eaf40b5e94f7675f (patch)
treed7958794573db71d0987c52e750b8a8c763b42b1 /accounts/accounts_test.go
parentb296b36d2b2aaa2f81d26b3c133ace2714c58a7d (diff)
downloadgo-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar
go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.gz
go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.bz2
go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.lz
go-tangerine-d1311c53eee916ae8472a3b7eaf40b5e94f7675f.tar.xz
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.go2
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 {