Skip to content

Commit

Permalink
fixed flickering test
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Aug 5, 2023
1 parent 0ab219b commit 666415a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tests/auth/test_auth_keycloak_openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,14 @@ async def test_success_validate_after_refresh(self):

await gen.sleep(0.4 + 0.1)

valid_1 = await self.authenticator.validate_user(username, mock_request_handler(previous_request=request_1))
valid_1 = await self.authenticator.validate_user(username, mock_request_handler(previous_request=request_1))
self.assertTrue(valid_1)

await gen.sleep(0.1)
for i in range(1, 8):
await gen.sleep(0.05)

if self.authenticator.get_groups('bugy') == ['g3']:
break

self.assertEqual(['g3'], self.authenticator.get_groups('bugy'))

Expand Down

0 comments on commit 666415a

Please sign in to comment.