From 666415aadaf04b004d19e4ed7aedc44c4136ce35 Mon Sep 17 00:00:00 2001 From: yshepilov Date: Sat, 5 Aug 2023 13:39:33 +0200 Subject: [PATCH 1/2] fixed flickering test --- src/tests/auth/test_auth_keycloak_openid.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tests/auth/test_auth_keycloak_openid.py b/src/tests/auth/test_auth_keycloak_openid.py index d82528b6..7698b32f 100644 --- a/src/tests/auth/test_auth_keycloak_openid.py +++ b/src/tests/auth/test_auth_keycloak_openid.py @@ -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')) From 738acf03dd672ad9717faaa818e7555cce0a8861 Mon Sep 17 00:00:00 2001 From: yshepilov Date: Fri, 25 Aug 2023 21:39:44 +0200 Subject: [PATCH 2/2] fixed failing e2e tests due to chromedriver version mismatch --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 24652535..cfb1fcfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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