未验证 提交 2274b431 编写于 作者: B Basil Crow 提交者: GitHub

De-flake `NodeProvisionerTest#baselineSlaveUsage` (#7501)

上级 aa43f932
......@@ -188,7 +188,8 @@ public class NodeProvisionerTest {
verifySuccessfulCompletion(buildAll(create5SlowJobs(new Latch(5), r)), r);
// we should have used two static slaves, thus only 3 slaves should have been provisioned
assertEquals(3, cloud.numProvisioned);
// sometimes we can end up allocating 4 due to the conservative estimation in StandardStrategyImpl#apply
assertThat(cloud.numProvisioned, anyOf(equalTo(3), equalTo(4)));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册