Skip to content

Commit

Permalink
Fix intermittent test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lasanthaS committed Oct 18, 2019
1 parent b221509 commit 45ea9c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void receive(Event[] events) {
/**
* Test case to test state persistence of polling mode.
*/
@Test
@Test(dependsOnMethods = {"testCDCPollingMode"})
public void testCDCPollingModeStatePersistence() throws InterruptedException {
log.info("------------------------------------------------------------------------------------------------");
log.info("CDC TestCase: Testing state persistence of the polling mode.");
Expand Down Expand Up @@ -301,7 +301,7 @@ public void receive(Event[] events) {
siddhiManager.shutdown();
}

@Test
@Test(dependsOnMethods = {"testCDCPollingModeStatePersistence"})
public void testOutOfOrderRecords() throws InterruptedException {
log.info("------------------------------------------------------------------------------------------------");
log.info("CDC TestCase: Test missed/out-of-order events in polling mode.");
Expand Down
2 changes: 1 addition & 1 deletion component/src/test/resources/testng-suit2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<!--This test suit is used to test MySQL CDC in polling mode and listening mode-->
<suite name="Siddhi-Io-Cdc-Test-Suite2">
<test name="Siddhi-io-cdc-tests-2" enabled="true">
<test name="Siddhi-io-cdc-tests-2" enabled="true" parallel="false">
<classes>
<class name="org.wso2.extension.siddhi.io.cdc.source.TestCaseOfCDCPollingMode"/>
<class name="org.wso2.extension.siddhi.io.cdc.source.TestCaseOfCDCListeningMode"/>
Expand Down

0 comments on commit 45ea9c2

Please sign in to comment.