Sleep raised to 10ms as stem.currentMillis is not updated every
millisecond. Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -1026,8 +1026,8 @@ public class TargetResourceTest extends AbstractIntegrationTest {
|
|||||||
final List<Target> updatedTargets = deploymentManagement.assignDistributionSet(one, targets)
|
final List<Target> updatedTargets = deploymentManagement.assignDistributionSet(one, targets)
|
||||||
.getAssignedTargets();
|
.getAssignedTargets();
|
||||||
// 2nd update
|
// 2nd update
|
||||||
// sleep 1ms to ensure that we can sort by reportedAt
|
// sleep 10ms to ensure that we can sort by reportedAt
|
||||||
Thread.sleep(1);
|
Thread.sleep(10);
|
||||||
deploymentManagement.assignDistributionSet(two, updatedTargets);
|
deploymentManagement.assignDistributionSet(two, updatedTargets);
|
||||||
|
|
||||||
// two updates, one cancelation
|
// two updates, one cancelation
|
||||||
|
|||||||
Reference in New Issue
Block a user