forked from Silverfish/proton-bridge
GODT-1432: Check if keys are active before unlocking
This commit is contained in:
@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user