Skip to content

Commit

Permalink
Add reporting if test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
patchwork01 committed Apr 26, 2024
1 parent 1a012af commit ac2177a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import sleeper.core.statestore.FileReference;
import sleeper.core.util.PollWithRetries;
import sleeper.systemtest.dsl.SleeperSystemTest;
import sleeper.systemtest.dsl.extension.AfterTestReports;
import sleeper.systemtest.dsl.reporting.SystemTestReports;
import sleeper.systemtest.suite.testutil.Expensive;
import sleeper.systemtest.suite.testutil.SystemTest;

Expand All @@ -46,8 +48,9 @@
public class ParallelCompactionsIT {

@BeforeEach
void setUp(SleeperSystemTest sleeper) throws Exception {
void setUp(SleeperSystemTest sleeper, AfterTestReports reporting) throws Exception {
sleeper.connectToInstance(PARALLEL_COMPACTIONS);
reporting.reportIfTestFailed(SystemTestReports.SystemTestBuilder::compactionTasksAndJobs);
}

@Test
Expand Down

0 comments on commit ac2177a

Please sign in to comment.