Skip to content

Commit

Permalink
Try to fix parallelLockWithLabelFillsVariable (#518)
Browse files Browse the repository at this point in the history
* Try to fix parallelLockWithLabelFillsVariable

* parallelLockWithLabelFillsVariable

* isPaused

* isPaused
  • Loading branch information
mPokornyETM authored Jun 5, 2023
1 parent 53615ef commit fbfb6ac
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,14 @@ public void parallelLockWithLabelFillsVariable() throws Exception {
// Unlock resources
SemaphoreStep.success("wait-inside/1", null);
j.waitForMessage("Lock released on resource", b1);

// wait until both resources are free.
// otherwise the next isPaused() check might fail
j.waitForMessage("VAR2 IS", b1);
// this sometimes fails, but it does not looks like a failure in the plugin self
// and it is not necessary to check it here, because this test case will check
// env variable resolution and not if the paused actions works
// therefore, when it fails again, you can comment it out.
isPaused(b1, 2, 0);

// Now the second parallel branch should get and release the lock...
Expand Down

0 comments on commit fbfb6ac

Please sign in to comment.