Skip to content

Commit ce62732

Browse files
committed
update test case
1 parent 31ef087 commit ce62732

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/com/xxdb/restart/SimpleDBConnectionPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void test_SimpleDBConnectionPool_config_HighAvailability_true_LoadBalance
129129
config1.setPassword("123456");
130130
config1.setEnableHighAvailability(true);
131131
config1.setLoadBalance(true);
132-
config1.setMinimumPoolSize(101);
132+
config1.setMinimumPoolSize(100);
133133
config1.setMaximumPoolSize(200);
134134
config1.setHighAvailabilitySites(ipports);
135135
pool = new SimpleDBConnectionPool(config1);

test/com/xxdb/streaming/reverse/ThreadPooledClientReverseTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,16 @@ public void test_subscribe_unsubscribe_resubscribe() throws Exception {
476476
PrepareStreamTable();
477477
Vector filter1 = (Vector) conn.run("1..1000");
478478
for (int i=0;i<10;i++){
479+
System.out.println("-----------------------------------:"+i);
479480
threadPooledClient.subscribe(HOST, PORT, "Trades", "subTrades1", MessageHandler_handler, -1, true, filter1, true);
480481
threadPooledClient.subscribe(HOST, PORT, "Trades", "subTrades2", MessageHandler_handler, -1, true, filter1, true);
481482
threadPooledClient.subscribe(HOST, PORT, "Trades", "subTrades3", MessageHandler_handler, -1, true, filter1, true);
482-
conn.run("n=100;t=table(1..n as tag,now()+1..n as ts,rand(100.0,n) as data);" + "Trades.append!(t)");
483+
conn.run("n=10;t=table(1..n as tag,now()+1..n as ts,rand(100.0,n) as data);" + "Trades.append!(t)");
483484
Thread.sleep(1500);
484485
threadPooledClient.unsubscribe(HOST, PORT, "Trades", "subTrades1");
485486
threadPooledClient.unsubscribe(HOST, PORT, "Trades", "subTrades2");
486487
threadPooledClient.unsubscribe(HOST, PORT, "Trades", "subTrades3");
487-
Thread.sleep(1500);
488+
Thread.sleep(2000);
488489
}
489490
}
490491

@@ -1996,7 +1997,7 @@ public void test_threadPooledClient_subscribe_orca_table_not_orca_node() throws
19961997
conn1.run("appendOrcaStreamTable( \"orca.orca_table.output\", table(timestamp(1..10) as time,take(`a`s`q,10) as sym, 1..10 as volume))");
19971998

19981999
//wait_data("Receive",4);
1999-
sleep(1000);
2000+
sleep(2000);
20002001
BasicTable re = (BasicTable) conn1.run("select * from Receive order by time,sym,volume");
20012002
BasicTable tra = (BasicTable) conn1.run("select * from orca.orca_table.output order by time,sym,sum_volume");
20022003
assertEquals(14, re.rows());

0 commit comments

Comments
 (0)