Skip to content

Commit ad36741

Browse files
committed
update test case about release130
1 parent ed9ee90 commit ad36741

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/com/xxdb/compatibility_testing/release130/MultithreadedTableWriterTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void test_MultithreadedTableWriter_memory_dbname_wrong() throws Exception
187187
"", "tt", false, false, null, 10000, 1,
188188
5, "date");
189189
}catch (Exception e) {
190-
assertEquals(HOST+":"+PORT+" Server response: 'Syntax Error: [line #1] Cannot recognize the token tt' script: 'schema(tt)'",e.getMessage());
190+
assertEquals(HOST+":"+PORT+" Server response: Syntax Error: [line #1] Cannot recognize the token tt. script: schema(tt)",e.getMessage());
191191
}
192192
conn.run("undef(`t1,SHARED)");
193193
}
@@ -581,17 +581,17 @@ public void test_MultithreadedTableWriter_threadcount() throws Exception {
581581
public void test_insert_allnull() throws Exception {
582582

583583
StringBuilder sb = new StringBuilder();
584-
sb.append("t = table(1000:0, `bool`char`short`lo`date`month`second`datetime`timestamp`nanotime`nanotimestamp`float`double`symbol`string`uuid`ipaddr`int128`int`arrv`blob," +
585-
"[BOOL,CHAR,SHORT,LONG,DATE,MONTH,SECOND,DATETIME,TIMESTAMP,NANOTIME,NANOTIMESTAMP,FLOAT,DOUBLE,SYMBOL,STRING,UUID, IPADDR, INT128,INT,INT[],BLOB]);" +
584+
sb.append("t = table(1000:0, `bool`char`short`lo`date`month`second`datetime`timestamp`nanotime`nanotimestamp`float`double`symbol`string`uuid`ipaddr`int128`int," +
585+
"[BOOL,CHAR,SHORT,LONG,DATE,MONTH,SECOND,DATETIME,TIMESTAMP,NANOTIME,NANOTIMESTAMP,FLOAT,DOUBLE,SYMBOL,STRING,UUID, IPADDR, INT128,INT]);" +
586586
"share t as t1;");
587587
conn.run(sb.toString());
588588
mutithreadTableWriter_ = new MultithreadedTableWriter(HOST, PORT, "admin", "123456",
589589
"", "t1", false, false, null, 1, 1,
590590
1, "bool");
591591

592-
ErrorCodeInfo pErrorInfo = mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
593-
mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
594-
mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
592+
ErrorCodeInfo pErrorInfo = mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
593+
mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
594+
mutithreadTableWriter_.insert( null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
595595
assertEquals("code= info=",pErrorInfo.toString());
596596
mutithreadTableWriter_.waitForThreadCompletion();
597597
BasicTable bt = (BasicTable) conn.run("select * from t1;");

test/com/xxdb/compatibility_testing/release130/streaming/ThreadedClientsubscribeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ public void test_subscribe_other_user_unallow() throws IOException{
912912
client.subscribe(HOST, PORT, "Trades", "subTread1", MessageHandler_handler, -1, true, filter1, true, 100, 5, "test1", "123456");
913913
fail("no exception thrown");
914914
}catch (Exception e){
915-
assertEquals(HOST+":"+PORT+" Server response: 'No access to shared table [Trades]' function: 'publishTable'",e.getMessage());
915+
assertEquals(HOST+":"+PORT+" Server response: No access to shared table [Trades]. function: publishTable",e.getMessage());
916916
}
917917
}
918918

0 commit comments

Comments
 (0)