提交 d4f87626 编写于 作者: J James Nord

[JENKINS-28683] correct the class name and assertion message.

上级 65108e42
......@@ -13,7 +13,7 @@ import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class APeriodicWorkTest {
public class AperiodicWorkTest {
@Rule
public JenkinsRule jr = new JenkinsRule();
......@@ -27,7 +27,7 @@ public class APeriodicWorkTest {
ExtensionList.lookup(AperiodicWork.class).add(tapw);
assertThat("we have one new AperiodicWork", AperiodicWork.all(), hasSize(size+1));
assertThat("The task was not run within 15 seconds",tapw.doneSignal.await(15, TimeUnit.SECONDS), is(true));
assertThat("The task was run within 15 seconds", tapw.doneSignal.await(15, TimeUnit.SECONDS), is(true));
}
private static class TestAperiodicWork extends AperiodicWork {
......
......@@ -27,7 +27,7 @@ public class PeriodicWorkTest {
ExtensionList.lookup(PeriodicWork.class).add(tpw);
assertThat("we have one new PeriodicWork", PeriodicWork.all(), hasSize(size+1));
assertThat("The task was not run within 15 seconds",tpw.doneSignal.await(15, TimeUnit.SECONDS), is(true));
assertThat("The task was run within 15 seconds", tpw.doneSignal.await(15, TimeUnit.SECONDS), is(true));
}
private static class TestPeriodicWork extends PeriodicWork {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册