Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Randomly failing Eclipse SmartHome Core Binding XML Tests #4010

Closed
triller-telekom opened this issue Aug 10, 2017 · 0 comments
Closed

Randomly failing Eclipse SmartHome Core Binding XML Tests #4010

triller-telekom opened this issue Aug 10, 2017 · 0 comments

Comments

@triller-telekom
Copy link
Contributor

I have seen test failures like the one below quite often on PRs already. Seems like there is something non deterministic in them...

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.026 sec - in org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest
assert that BindingInfo is read properly(org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest)  Time elapsed: 0.338 sec
assert that BindingInfo is removed after the bundle was uninstalled(org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest)  Time elapsed: 0.046 sec
assert that config with options and filter are properly read(org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest)  Time elapsed: 0.17 sec
assert that BindingInfo without author is read properly(org.eclipse.smarthome.core.binding.xml.test.BindingInfoTest)  Time elapsed: 0.12 sec
Running org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.168 sec <<< FAILURE! - in org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest
assert binding infos were localized in German(org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest)  Time elapsed: 0.038 sec
assert using default locale(org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest)  Time elapsed: 0.079 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<...        name = Yahoo[ Wetter Binding
        description = Das Yahoo Wetter Binding stellt verschiedene Wetterdaten wie die Temperatur, die Luftfeuchtigkeit und den Luftdruck für konfigurierbare Orte vom yahoo Wetterdienst bereit]
        > but was:<...        name = Yahoo[Weather Binding
        description = The Yahoo Weather Binding requests the Yahoo Weather Service to show the current temperature, humidity and pressure.]
        >
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.junit.Assert$assertEquals$0.callStatic(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:169)
	at org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest.assert using default locale(BindingInfoI18nTest.groovy:127)

assert binding infos were localized in Dutch(org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest)  Time elapsed: 0.028 sec
assert using original binding infos, if provided locale is not supported(org.eclipse.smarthome.core.binding.xml.test.BindingInfoI18nTest)  Time elapsed: 0.015 sec

Results :

Failed tests: 
  BindingInfoI18nTest.assert using default locale:127 expected:<...        name = Yahoo[ Wetter Binding
        description = Das Yahoo Wetter Binding stellt verschiedene Wetterdaten wie die Temperatur, die Luftfeuchtigkeit und den Luftdruck für konfigurierbare Orte vom yahoo Wetterdienst bereit]
        > but was:<...        name = Yahoo[Weather Binding
        description = The Yahoo Weather Binding requests the Yahoo Weather Service to show the current temperature, humidity and pressure.]
        >

Tests run: 8, Failures: 1, Errors: 0, Skipped: 0

triller-telekom added a commit to triller-telekom/smarthome that referenced this issue Aug 11, 2017
Fixes eclipse-archived#4010

Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
kaikreuzer pushed a commit that referenced this issue Aug 11, 2017
Fixes #4010

Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant