aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-07 23:00:34 +0800
committerFelix Lange <fjl@twurst.com>2016-04-12 21:59:18 +0800
commit6498df7b0290139df57629568d824dfa242900cc (patch)
tree7dce5f0d30ded2da96fc773ce53a1c1bd865d545 /accounts/accounts_test.go
parent46df50be181afca503aff4a545e3f322ad04448b (diff)
downloadgo-tangerine-6498df7b0290139df57629568d824dfa242900cc.tar.gz
go-tangerine-6498df7b0290139df57629568d824dfa242900cc.tar.zst
go-tangerine-6498df7b0290139df57629568d824dfa242900cc.zip
accounts: ensure TimedUnlock does not override indefinite unlock timeout
Diffstat (limited to 'accounts/accounts_test.go')
-rw-r--r--accounts/accounts_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go
index 56d4040c3..829cf3968 100644
--- a/accounts/accounts_test.go
+++ b/accounts/accounts_test.go
@@ -120,8 +120,8 @@ func TestOverrideUnlock(t *testing.T) {
pass := "foo"
a1, err := am.NewAccount(pass)
- // Unlock indefinitely
- if err = am.Unlock(a1, pass); err != nil {
+ // Unlock indefinitely.
+ if err = am.TimedUnlock(a1, pass, 5*time.Minute); err != nil {
t.Fatal(err)
}