提交 f7a9d268 编写于 作者: A Antonio Muñiz

Fix tests after renaming in log messages

上级 7d840eb1
...@@ -101,7 +101,7 @@ public class HelpCommandTest { ...@@ -101,7 +101,7 @@ public class HelpCommandTest {
private void assertContainsUsageOfMethodCommand(String text) { private void assertContainsUsageOfMethodCommand(String text) {
assertThat(text, containsString("offline-node NAME [-m VAL]")); assertThat(text, containsString("offline-node NAME [-m VAL]"));
assertThat(text, containsStrings("NAME", "Slave name, or empty string for master")); assertThat(text, containsStrings("NAME", "Agent name, or empty string for master"));
assertThat(text, containsStrings("-m VAL", "Record the note about why you are disconnecting this node")); assertThat(text, containsStrings("-m VAL", "Record the note about why you are disconnecting this node"));
} }
......
...@@ -140,7 +140,7 @@ public class ExecutorTest { ...@@ -140,7 +140,7 @@ public class ExecutorTest {
assertEquals(b.getResult(), Result.FAILURE); assertEquals(b.getResult(), Result.FAILURE);
assertThat(log, containsString("Finished: FAILURE")); assertThat(log, containsString("Finished: FAILURE"));
assertThat(log, containsString("Build step 'BlockingBuilder' marked build as failure")); assertThat(log, containsString("Build step 'BlockingBuilder' marked build as failure"));
assertThat(log, containsString("Slave went offline during the build")); assertThat(log, containsString("Agent went offline during the build"));
assertThat(log, containsString("Disconnected by Johnny : Taking offline to break your buil")); assertThat(log, containsString("Disconnected by Johnny : Taking offline to break your buil"));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册