GODT-1432: Check if keys are active before unlocking

This commit is contained in:
James Houlahan
2021-11-23 16:35:37 +01:00
committed by Jakub
parent 59075f2e26
commit 6435f7b09a
11 changed files with 28 additions and 11 deletions

View File

@ -61,5 +61,5 @@ func TestClient_CurrentUser(t *testing.T) {
// Ignore KeyRings during the check because they have unexported fields and cannot be compared
r.True(t, cmp.Equal(user, testCurrentUser, cmpopts.IgnoreTypes(&crypto.Key{})))
r.Nil(t, c.Unlock(context.Background(), []byte(testMailboxPassword)))
r.NoError(t, c.Unlock(context.Background(), []byte(testMailboxPassword)))
}