Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Aug 25, 2023
2 parents d047f9d + 738acf0 commit 2b0a9bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ env:
- PATH=$HOME/.local/bin:$PATH
before_install:
- sudo apt-get -y install python3-pip python3-setuptools apache2-utils python3-venv
chromium-browser chromium-chromedriver
- wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
- unzip chromedriver-linux64.zip -d $HOME/.local/bin
install:
- pip3 install -r requirements.txt
- pip3 install pyasn1 --upgrade
Expand Down
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 2b0a9bb

Please sign in to comment.