Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(SimPinFeederTest): attempt to address test flakiness due to timeout #41

Conversation

iusmac
Copy link
Owner

@iusmac iusmac commented Dec 6, 2024

This occurs only on 'release' builds... presumably because of bytecode optimizations, which reduces overall execution time. To address this, we'll allow a max. discrepancy of 250ms.

org.awaitility.core.ConditionTimeoutException: Condition was evaluated in 2 seconds 958 milliseconds which is earlier than expected minimum timeout 3 seconds
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:172)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:975)
	at com.github.iusmac.sevensim.telephony.SimPinFeederTest.assertTaskTimedOut(SimPinFeederTest.java:906)
	at com.github.iusmac.sevensim.telephony.SimPinFeederTest.test_ShouldFinishAfterExceedingFixedWaitTimeoutForSimStatusChangeEventWhenAvailableSimCardsDoNotRequirePin(SimPinFeederTest.java:219)

This occurs only on 'release' builds... presumably because of bytecode
optimizations, which reduces overall execution time. To address this,
we'll allow a max. discrepancy of 250ms.

org.awaitility.core.ConditionTimeoutException: Condition was evaluated in 2 seconds 958 milliseconds which is earlier than expected minimum timeout 3 seconds
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:172)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:975)
	at com.github.iusmac.sevensim.telephony.SimPinFeederTest.assertTaskTimedOut(SimPinFeederTest.java:906)
	at com.github.iusmac.sevensim.telephony.SimPinFeederTest.test_ShouldFinishAfterExceedingFixedWaitTimeoutForSimStatusChangeEventWhenAvailableSimCardsDoNotRequirePin(SimPinFeederTest.java:219)

Signed-off-by: iusmac <[email protected]>
@iusmac iusmac merged commit 6946b97 into 14.0-dev Dec 6, 2024
1 check passed
@iusmac iusmac deleted the hotfix/SimPinFeederTest-attempt-to-address-test-flakiness-due-to-timeout branch December 6, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant