Fixed potential bug found by findbugs
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor@119321 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
db8ccbcabd
commit
2ebec0abfe
|
@ -269,7 +269,7 @@ public class SmartExecutorSchedulerTest {
|
|||
|
||||
for(int i=1; i<5; i++){
|
||||
PluginState pluginState = pc.getPluginInstanceState(HelloWorldPluginDeclaration.NAME, uuid, i);
|
||||
if(i%2==1){
|
||||
if(i%2!=0){
|
||||
Assert.assertEquals(PluginState.DONE, pluginState);
|
||||
}else{
|
||||
Assert.assertEquals(PluginState.DISCARDED, pluginState);
|
||||
|
@ -424,7 +424,7 @@ public class SmartExecutorSchedulerTest {
|
|||
|
||||
for(int i=1; i<5; i++){
|
||||
PluginState pluginState = pc.getPluginInstanceState(HelloWorldPluginDeclaration.NAME, uuid, i);
|
||||
if(i%2==1){
|
||||
if(i%2!=0){
|
||||
Assert.assertEquals(PluginState.DONE, pluginState);
|
||||
}else{
|
||||
Assert.assertEquals(PluginState.DISCARDED, pluginState);
|
||||
|
|
Loading…
Reference in New Issue