mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 09:36:51 +00:00
GODT-1515: Do not crash when bridge users got disconnected.
This commit is contained in:
@ -33,6 +33,7 @@ func UsersSetupFeatureContext(s *godog.ScenarioContext) {
|
||||
s.Step(`^there is database file for "([^"]*)"$`, thereIsDatabaseFileForUser)
|
||||
s.Step(`^there is no database file for "([^"]*)"$`, thereIsNoDatabaseFileForUser)
|
||||
s.Step(`^there is "([^"]*)" in "([^"]*)" address mode$`, thereIsUserWithAddressMode)
|
||||
s.Step(`^credentials? (?:are|is) locked$`, credentialsAreLocked)
|
||||
}
|
||||
|
||||
func thereIsUser(bddUserID string) error {
|
||||
@ -150,3 +151,8 @@ func thereIsUserWithAddressMode(bddUserID, wantAddressMode string) error {
|
||||
ctx.EventuallySyncIsFinishedForUsername(user.Username())
|
||||
return nil
|
||||
}
|
||||
|
||||
func credentialsAreLocked() error {
|
||||
ctx.CredentialsFailsOnWrite(true)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user