Skip to content

Commit

Permalink
Reduce the probability of test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanvive committed Sep 10, 2019
1 parent a24d854 commit 4cd22c7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1937,9 +1937,9 @@ public void testQueryAbsent47() throws InterruptedException {
InputHandler stream3 = siddhiAppRuntime.getInputHandler("Stream3");
siddhiAppRuntime.start();

Thread.sleep(2200);
Thread.sleep(2100);
stream3.send(new Object[]{"WSO2", 35.0f, 100});
Thread.sleep(2200);
Thread.sleep(2100);
stream3.send(new Object[]{"IBM", 55.0f, 100});
Thread.sleep(1000);

Expand All @@ -1952,9 +1952,9 @@ public void testQueryAbsent47() throws InterruptedException {
siddhiAppRuntime.shutdown();
}

@Test(dependsOnMethods = {"testQueryAbsent47"})
@Test //(dependsOnMethods = {"testQueryAbsent47"})
public void testQueryAbsent48() throws InterruptedException {
log.info("Test the query every (not e1 for 1 sec or not e2 for 1 sec) -> e3 with only e3 after 2 seconds");
log.info("Test the query every (not e1 for 2 sec or not e2 for 2 sec) -> e3 with only e3 after 4 seconds");

SiddhiManager siddhiManager = new SiddhiManager();

Expand All @@ -1964,7 +1964,7 @@ public void testQueryAbsent48() throws InterruptedException {
"define stream Stream3 (symbol string, price float, volume int); ";
String query = "" +
"@info(name = 'query1') " +
"from every (not Stream1[price>10] for 1 sec or not Stream2[price>20] for 1 sec) -> " +
"from every (not Stream1[price>10] for 2 sec or not Stream2[price>20] for 2 sec) -> " +
"e3=Stream3[price>30] " +
"select e3.symbol as symbol " +
"insert into OutputStream ;";
Expand All @@ -1977,7 +1977,7 @@ public void testQueryAbsent48() throws InterruptedException {
InputHandler stream3 = siddhiAppRuntime.getInputHandler("Stream3");
siddhiAppRuntime.start();

Thread.sleep(2100);
Thread.sleep(4200);
stream3.send(new Object[]{"WSO2", 35.0f, 100});
Thread.sleep(1000);

Expand Down

0 comments on commit 4cd22c7

Please sign in to comment.