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
This commit is contained in:
Gustav Simonsson
2015-02-25 18:40:59 +01:00
parent b296b36d2b
commit d1311c53ee
2 changed files with 19 additions and 17 deletions

View File

@ -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 {