Other(test): Prefer native API revoke rather than fake server method

This commit is contained in:
James Houlahan
2022-12-12 10:47:06 +01:00
parent 5f1389f824
commit 49fa451cc3
4 changed files with 6 additions and 4 deletions

View File

@ -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 {