Skip to content

Race condition in tests #305

@AB-xdev

Description

@AB-xdev

https://github.com/xdev-software/spring-security-extras/actions/runs/23854251426/job/69542665237

Error:  software.xdev.sse.demo.vaadin.cases.LoginOIDCTest.checkReLoginShouldKeepUrl(TestBrowser)[2] -- Time elapsed: 35.86 s <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Unexpected exception thrown: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for url to be "http://webapp:8080/another?continue". Current url: "http://webapp:8080/login?error"
(tried for 10 seconds with 500 milliseconds interval)
Build info: version: '4.41.0', revision: '9fc754f'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.17.0-1008-azure', java.version: '25.0.2'
Driver info: org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$S9L4KgLc$ByteBuddy$TkrQn2a6
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 145.0.7632.109, chrome: {chromedriverVersion: 145.0.7632.109 (61eff07de4f..., userDataDir: /tmp/org.chromium.Chromium....}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:40385}, goog:processID: 140, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdpEnabled: false, se:cdpVersion: 145.0.7632.109, se:containerName: c5795f1f17c0, se:deleteSessionOnUi: true, se:downloadsEnabled: true, se:gridWebSocketUrl: ws://localhost:2257/session..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:32777/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Session ID: 579caefb430df764592a02a0cd1b877e
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:159)
	at org.junit.jupiter.api.AssertDoesNotThrow.createAssertionFailedError(AssertDoesNotThrow.java:90)
	at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:80)
	at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:61)
	at org.junit.jupiter.api.Assertions.assertDoesNotThrow(Assertions.java:3355)
	at software.xdev.sse.demo.vaadin.cases.LoginOIDCTest.lambda$checkReLoginShouldKeepUrl$2(LoginOIDCTest.java:76)
	at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
	at software.xdev.sse.demo.vaadin.cases.LoginOIDCTest.checkReLoginShouldKeepUrl(LoginOIDCTest.java:62)
Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for url to be "http://webapp:8080/another?continue". Current url: "http://webapp:8080/login?error"
(tried for 10 seconds with 500 milliseconds interval)
Build info: version: '4.41.0', revision: '9fc754f'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.17.0-1008-azure', java.version: '25.0.2'
Driver info: org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$S9L4KgLc$ByteBuddy$TkrQn2a6
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 145.0.7632.109, chrome: {chromedriverVersion: 145.0.7632.109 (61eff07de4f..., userDataDir: /tmp/org.chromium.Chromium....}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:40385}, goog:processID: 140, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdpEnabled: false, se:cdpVersion: 145.0.7632.109, se:containerName: c5795f1f17c0, se:deleteSessionOnUi: true, se:downloadsEnabled: true, se:gridWebSocketUrl: ws://localhost:2257/session..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:32777/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Session ID: 579caefb430df764592a02a0cd1b877e
	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:85)
	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:233)
	at software.xdev.sse.demo.webapp.base.IntegrationTestDefaults.waitUntil(IntegrationTestDefaults.java:92)
	at software.xdev.sse.demo.webapp.base.IntegrationTestDefaults.waitUntil(IntegrationTestDefaults.java:87)
	at software.xdev.sse.demo.vaadin.cases.LoginOIDCTest.lambda$checkReLoginShouldKeepUrl$3(LoginOIDCTest.java:77)
	at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:76)
	... 5 more

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions