From 6498df7b0290139df57629568d824dfa242900cc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 7 Apr 2016 17:00:34 +0200 Subject: accounts: ensure TimedUnlock does not override indefinite unlock timeout --- accounts/accounts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accounts/accounts_test.go') 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) } -- cgit v1.2.3