mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
Other(test): Prefer native API revoke rather than fake server method
This commit is contained in:
@ -310,7 +310,9 @@ func (s *scenario) userIsDeleted(username string) error {
|
||||
}
|
||||
|
||||
func (s *scenario) theAuthOfUserIsRevoked(username string) error {
|
||||
return s.t.api.RevokeUser(s.t.getUserID(username))
|
||||
return s.t.withClient(context.Background(), username, func(ctx context.Context, client *proton.Client) error {
|
||||
return client.AuthRevokeAll(ctx)
|
||||
})
|
||||
}
|
||||
|
||||
func (s *scenario) userIsListedAndConnected(username string) error {
|
||||
|
||||
Reference in New Issue
Block a user