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

ConfigDispatcherFileWatcherTest always fails on Windows #3383

Closed
wborn opened this issue Feb 18, 2023 · 0 comments · Fixed by #3384
Closed

ConfigDispatcherFileWatcherTest always fails on Windows #3383

wborn opened this issue Feb 18, 2023 · 0 comments · Fixed by #3384
Labels

Comments

@wborn
Copy link
Member

wborn commented Feb 18, 2023

These tests now always fail on Windows builds so it might be a real bug e.g. caused by #3004.

See this GHA build: https://github.com/wborn/openhab-core/actions/runs/4210674830/jobs/7308736469

configurationFileCreated

[ERROR] Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.562 s <<< FAILURE! - in org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest
[ERROR] org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileCreated  Time elapsed: 1.426 s  <<< FAILURE!
Wanted but not invoked:
configDispatcherMock.processConfigFile(
    myPath.cfg
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileCreated(ConfigDispatcherFileWatcherTest.java:50)

However, there was exactly 1 interaction with this mock:
configDispatcherMock.processConfigFile(
    conf\services
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcher.<init>(ConfigDispatcherFileWatcher.java:58)


	at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileCreated(ConfigDispatcherFileWatcherTest.java:50)

configurationFileRemoved

[ERROR] org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileRemoved  Time elapsed: 0.004 s  <<< FAILURE!
Wanted but not invoked:
configDispatcherMock.fileRemoved(
    "D:\a\openhab-core\openhab-core\bundles\org.openhab.core.config.dispatch\myPath.cfg"
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileRemoved(ConfigDispatcherFileWatcherTest.java:82)

However, there was exactly 1 interaction with this mock:
configDispatcherMock.processConfigFile(
    conf\services
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcher.<init>(ConfigDispatcherFileWatcher.java:58)


	at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileRemoved(ConfigDispatcherFileWatcherTest.java:82)

configurationFileModified

[ERROR] org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileModified  Time elapsed: 0.007 s  <<< FAILURE!
Wanted but not invoked:
configDispatcherMock.processConfigFile(
    myPath.cfg
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileModified(ConfigDispatcherFileWatcherTest.java:58)

However, there was exactly 1 interaction with this mock:
configDispatcherMock.processConfigFile(
    conf\services
);
-> at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcher.<init>(ConfigDispatcherFileWatcher.java:58)


	at org.openhab.core.config.dispatch.internal.ConfigDispatcherFileWatcherTest.configurationFileModified(ConfigDispatcherFileWatcherTest.java:58)
@wborn wborn added the test label Feb 18, 2023
@wborn wborn changed the title ConfigDispatcherFileWatcherTest.configurationFileCreated always fails on Windows ConfigDispatcherFileWatcherTest always fails on Windows Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant