accounts: ensure TimedUnlock does not override indefinite unlock timeout

This commit is contained in:
Felix Lange
2016-04-07 17:00:34 +02:00
parent 46df50be18
commit 6498df7b02
2 changed files with 16 additions and 10 deletions

View File

@@ -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)
}