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:
Kai Zimmermann
2016-03-04 08:40:47 +01:00
parent 8c5945badd
commit 3b74db0cac

View File

@@ -1026,8 +1026,8 @@ public class TargetResourceTest extends AbstractIntegrationTest {
final List<Target> updatedTargets = deploymentManagement.assignDistributionSet(one, targets)
.getAssignedTargets();
// 2nd update
// sleep 1ms to ensure that we can sort by reportedAt
Thread.sleep(1);
// sleep 10ms to ensure that we can sort by reportedAt
Thread.sleep(10);
deploymentManagement.assignDistributionSet(two, updatedTargets);
// two updates, one cancelation