matteobaccan / owner

Get rid of the boilerplate code in properties based configuration.

Home Page:https://matteobaccan.github.io/owner/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests about Reloading failing seemingly randomly

pgrt opened this issue · comments

commented

Hello,

I have started packaging owner into Debian GNU/Linux. While doing so, I met an issue with the tests
testReloadWorksWhenURLContainsVariablesToExpand
and
testAutoReloadFromClasspath
which succeeded during many builds, then suddenly began repetitively failing, with the messages

`[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.026 s <<< FAILURE! - in org.aeonbits.owner.reload.SyncAutoReloadTest
[ERROR] testAutoReloadFromClasspath(org.aeonbits.owner.reload.SyncAutoReloadTest) Time elapsed: 0.012 s <<< FAILURE!
java.lang.AssertionError: expected:<20> but was:<10>
at org.aeonbits.owner.reload.SyncAutoReloadTest.testAutoReloadFromClasspath(SyncAutoReloadTest.java:181)

...

[INFO] Running org.aeonbits.owner.reload.HotReloadWhenURLContainsVariablesTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.007 s <<< FAILURE! - in org.aeonbits.owner.reload.HotReloadWhenURLContainsVariablesTest
[ERROR] testReloadWorksWhenURLContainsVariablesToExpand(org.aeonbits.owner.reload.HotReloadWhenURLContainsVariablesTest) Time elapsed: 0.007 s <<< FAILURE!
java.lang.AssertionError: expected:<10> but was:<5>
at org.aeonbits.owner.reload.HotReloadWhenURLContainsVariablesTest.testReloadWorksWhenURLContainsVariablesToExpand(HotReloadWhenURLContainsVariablesTest.java:72)`

Would you have any idea why these failures suddenly came up?

Thanks a lot and best regards,

Pierre