Skip to content

Commit

Permalink
#460 fix IT
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Dec 28, 2018
1 parent 95c49b5 commit 6e2b6ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ public void testC_ExecutorConfigGroupsAndInitJobFailed() throws Exception {

ILoggingEvent lastLog = logbackListAppender.getLastLog();
assertThat(lastLog.getLevel()).isEqualTo(Level.INFO);
assertThat(lastLog.getFormattedMessage()).isEqualTo(
"[testC_ExecutorConfigGroupsAndInitJobFailed] msg=the job testC_ExecutorConfigGroupsAndInitJobFailed wont be initialized, because it's not in the groups [group1, group2]");
// VIP_SATURN_INIT_JOB_BY_GROUPS is Set, not ArrayList
assertThat(lastLog.getFormattedMessage())
.isIn("[testC_ExecutorConfigGroupsAndInitJobFailed] msg=the job testC_ExecutorConfigGroupsAndInitJobFailed wont be initialized, because it's not in the groups [group1, group2]",
"[testC_ExecutorConfigGroupsAndInitJobFailed] msg=the job testC_ExecutorConfigGroupsAndInitJobFailed wont be initialized, because it's not in the groups [group2, group1]");

removeJob(jobConfig.getJobName());
} finally {
Expand Down

0 comments on commit 6e2b6ab

Please sign in to comment.