Skip to content

Commit

Permalink
restore logs test
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Jul 12, 2023
1 parent f86be5a commit 430d513
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ protected void testTask(Entry taskEntry, TaskState expectedState, int timeoutInS

// Check that the task contains some log messages.
Set<String> logMessages = resultEntry.parseAttribute(ATTR_TASK_LOG_MESSAGES).asSetOfString();
// assertTrue(taskState == TaskState.COMPLETED_SUCCESSFULLY || !logMessages.isEmpty(),
// "No log messages were written to the task entry on a failed task.\n"
// + "taskState=" + taskState
// + "\nlogMessages size=" + logMessages.size() + " and content=[" + logMessages + "]");
assertTrue(taskState == TaskState.COMPLETED_SUCCESSFULLY || !logMessages.isEmpty(),
"No log messages were written to the task entry on a failed task.\n"
+ "taskState=" + taskState
+ "\nlogMessages size=" + logMessages.size() + " and content=[" + logMessages + "]");
}

private Entry getCompletedTaskEntry(DN name, final int timeoutInSec) throws Exception
Expand Down

0 comments on commit 430d513

Please sign in to comment.