Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ScheduledExecutorService;

Expand All @@ -45,6 +47,7 @@
* only when the execution graph reaches the successful final state.
*/
class FinalizeOnMasterTest {
private static final Logger LOG = LoggerFactory.getLogger(FinalizeOnMasterTest.class);

@RegisterExtension
static final TestExecutorExtension<ScheduledExecutorService> EXECUTOR_RESOURCE =
Expand All @@ -68,7 +71,11 @@ void testFinalizeIsCalledUponSuccess() throws Exception {
scheduler.startScheduling();

final ExecutionGraph eg = scheduler.getExecutionGraph();

if (!eg.getState().equals(JobStatus.RUNNING)) {
ErrorInfo ei = eg.getFailureInfo();
LOG.info("Unexpected state found: Exception as string " + ei.getExceptionAsString());
LOG.info("Unexpected state found: ErrorInfo as string " + ei);
}
assertThat(eg.getState()).isEqualTo(JobStatus.RUNNING);

ExecutionGraphTestUtils.switchAllVerticesToRunning(eg);
Expand Down