@@ -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