diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-07 23:00:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-12 21:59:18 +0800 |
commit | 6498df7b0290139df57629568d824dfa242900cc (patch) | |
tree | 7dce5f0d30ded2da96fc773ce53a1c1bd865d545 /accounts/accounts_test.go | |
parent | 46df50be181afca503aff4a545e3f322ad04448b (diff) | |
download | go-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.go | 4 |
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) } |