Skip to content

Commit b6caa4b

Browse files
committed
update test case about prepare
1 parent be5288a commit b6caa4b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

test/com/xxdb/LoadBalanceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ public void run() {
614614
MyThread thread = new MyThread();
615615
MyThread1 thread1 = new MyThread1();
616616
thread.start();
617-
Thread.sleep(15);
617+
Thread.sleep(20);
618618
System.err.println("thread1开始运行 ");
619619
thread1.start();
620620
thread.join();

test/com/xxdb/Prepare.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ public class Prepare {
1414
static int[] port_list = Arrays.stream(bundle.getString("PORTS").split(",")).mapToInt(Integer::parseInt).toArray();
1515

1616
public static void clear_env() throws IOException {
17-
for (int i = 0; i < port_list.length; i++) {
1817
DBConnection conn = new DBConnection();
19-
conn.connect(HOST, port_list[i], "admin", "123456");
18+
conn.connect(HOST, PORT, "admin", "123456");
2019
conn.run("a = getStreamingStat().pubTables\n" +
2120
"for(i in a){\n" +
2221
"\ttry{stopPublishTable(i.subscriber.split(\":\")[0],int(i.subscriber.split(\":\")[1]),i.tableName,i.actions)}catch(ex){}\n" +
@@ -40,7 +39,6 @@ public static void clear_env() throws IOException {
4039
"}\n" +
4140
"clearShare()");
4241
conn.run("try{dropStreamEngine(\"serInput\");\n}catch(ex){\n}\n");
43-
}
4442
}
4543

4644
public static void Preparedata(long count) throws IOException {

test/com/xxdb/streaming/client/cep/EventClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public void test_EventClient_subscribe_haStreamTable() throws IOException, Inte
924924
BasicTable re = (BasicTable)conn.run("select * from outputTable");
925925
Assert.assertEquals(1,re.rows());
926926
}
927-
@Test
927+
//@Test
928928
public void test_EventClient_subscribe_haStreamTable_leader() throws IOException, InterruptedException {
929929
BasicString StreamLeaderTmp = (BasicString)conn.run(String.format("getStreamingLeader(%d)", GROUP_ID));
930930
String StreamLeader = StreamLeaderTmp.getString();

0 commit comments

Comments
 (0)