提交 a54fb69d 编写于 作者: A abayer

Rolling back changes - they made the tests pass on my system but now they fail...

Rolling back changes - they made the tests pass on my system but now they fail erratically in the official build. Someone smarter than me should look into this. =)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21117 71c3de6d-444a-0410-be80-ed276b4c234a
上级 dab996e2
...@@ -95,7 +95,7 @@ public class NodeProvisionerTest extends HudsonTestCase { ...@@ -95,7 +95,7 @@ public class NodeProvisionerTest extends HudsonTestCase {
public void testAutoProvision() throws Exception { public void testAutoProvision() throws Exception {
BulkChange bc = new BulkChange(hudson); BulkChange bc = new BulkChange(hudson);
try { try {
DummyCloudImpl cloud = initHudson(100); DummyCloudImpl cloud = initHudson(10);
FreeStyleProject p = createJob(new SleepBuilder(10)); FreeStyleProject p = createJob(new SleepBuilder(10));
...@@ -116,7 +116,7 @@ public class NodeProvisionerTest extends HudsonTestCase { ...@@ -116,7 +116,7 @@ public class NodeProvisionerTest extends HudsonTestCase {
public void testLoadSpike() throws Exception { public void testLoadSpike() throws Exception {
BulkChange bc = new BulkChange(hudson); BulkChange bc = new BulkChange(hudson);
try { try {
DummyCloudImpl cloud = initHudson(100); DummyCloudImpl cloud = initHudson(0);
verifySuccessfulCompletion(buildAll(create5SlowJobs(new Latch(5)))); verifySuccessfulCompletion(buildAll(create5SlowJobs(new Latch(5))));
...@@ -134,7 +134,7 @@ public class NodeProvisionerTest extends HudsonTestCase { ...@@ -134,7 +134,7 @@ public class NodeProvisionerTest extends HudsonTestCase {
public void testBaselineSlaveUsage() throws Exception { public void testBaselineSlaveUsage() throws Exception {
BulkChange bc = new BulkChange(hudson); BulkChange bc = new BulkChange(hudson);
try { try {
DummyCloudImpl cloud = initHudson(100); DummyCloudImpl cloud = initHudson(0);
// add slaves statically upfront // add slaves statically upfront
createSlave().toComputer().connect(false).get(); createSlave().toComputer().connect(false).get();
createSlave().toComputer().connect(false).get(); createSlave().toComputer().connect(false).get();
...@@ -154,7 +154,7 @@ public class NodeProvisionerTest extends HudsonTestCase { ...@@ -154,7 +154,7 @@ public class NodeProvisionerTest extends HudsonTestCase {
public void testLabels() throws Exception { public void testLabels() throws Exception {
BulkChange bc = new BulkChange(hudson); BulkChange bc = new BulkChange(hudson);
try { try {
DummyCloudImpl cloud = initHudson(100); DummyCloudImpl cloud = initHudson(0);
Label blue = hudson.getLabel("blue"); Label blue = hudson.getLabel("blue");
Label red = hudson.getLabel("red"); Label red = hudson.getLabel("red");
cloud.label = red; cloud.label = red;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册