jenkinsci / groovy-events-listener-plugin

A Jenkins plugin, which executes groovy code when an event occurs.
https://plugins.jenkins.io/groovy-events-listener-plugin/
MIT License
36 stars 34 forks source link

GlobalEventsPluginTest > testConcurrentCounter FAILED #24

Closed nickgrealy closed 5 years ago

nickgrealy commented 8 years ago
### Steps to reproduce 1. Checkout specific version of source code 2. Run the tests from the gradle command line - `./gradlew clean build` ### Expected behaviour All tests should pass. ### Actual behaviour Test failed (could not reproduce on subsequent run - non-deterministic?): ``` org.jenkinsci.plugins.globalEventsPlugin.GlobalEventsPluginTest > testConcurrentCounter FAILED Assertion failed: assert plugin.context == [total:expectedValue] | | | | | | false 1000 | [total:999] org.jenkinsci.plugins.globalEventsPlugin.GlobalEventsPlugin$DescriptorImpl@5ad6f477 at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:402) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650) at org.jenkinsci.plugins.globalEventsPlugin.GlobalEventsPluginTest.testConcurrentCounter(GlobalEventsPluginTest.groovy:119) ``` ### Server configuration **Operating system**: Mac OSX Yosemite `10.10.5` **Jenkins Core Version**: `2.7.1` **Plugin Code Version**: https://github.com/jenkinsci/groovy-events-listener-plugin/commit/bc397b13fa1ccb590c26763af06f5de2f99d8827 **Java Version**: ``` $ java -version java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b12) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode) ``` ### Additional Notes: @Jimilian - I just thought you'd want to know this issue occurred... I couldn't reproduce it later on. Only major change is I can think of is -> updated base JavaVersion from 1.6 -> 1.7.