openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

ExpireManagerTest unstable

Open wborn opened this issue 2 years ago • 2 comments

This test failed in a macOS GHA build: https://github.com/wborn/openhab-core/actions/runs/4523616789/jobs/7966877526

[ERROR] Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 46.204 s <<< FAILURE! - in org.openhab.core.internal.items.ExpireManagerTest
[ERROR] org.openhab.core.internal.items.ExpireManagerTest.testIgnoreStateUpdateExtendsExpiryOnCommand  Time elapsed: 4.429 s  <<< FAILURE!
org.mockito.exceptions.verification.NeverWantedButInvoked: 

eventPublisherMock.post(<any>);
Never wanted here:
-> at org.openhab.core.internal.items.ExpireManagerTest.testIgnoreStateUpdateExtendsExpiryOnCommand(ExpireManagerTest.java:164)
But invoked here:
-> at org.openhab.core.internal.items.ExpireManager.postUpdate(ExpireManager.java:196) with arguments: [Item 'Test' updated to UNDEF]

	at org.openhab.core.internal.items.ExpireManagerTest.testIgnoreStateUpdateExtendsExpiryOnCommand(ExpireManagerTest.java:164)

wborn avatar Mar 26 '23 08:03 wborn

This still an issue, see: https://ci.openhab.org/job/PR-openHAB-Core/6180

wborn avatar Aug 26 '23 08:08 wborn

Today as well: https://ci.openhab.org/job/PR-openHAB-Core/6192/

Wanted but not invoked:
eventPublisherMock.post(<any>);
-> at org.openhab.core.internal.items.ExpireManagerTest.testIgnoreCommandDoesNotExtendExpiryOnStateUpdate(ExpireManagerTest.java:237)
Actually, there were zero interactions with this mock.

	at org.openhab.core.internal.items.ExpireManagerTest.testIgnoreCommandDoesNotExtendExpiryOnStateUpdate(ExpireManagerTest.java:237)

wborn avatar Aug 28 '23 20:08 wborn