modify node ci example

This commit is contained in:
menshibin 2024-09-26 10:52:17 +08:00
parent c76a8b3a51
commit da597dc90c
9 changed files with 7 additions and 43 deletions

View File

@ -400,7 +400,7 @@ pipeline {
}
}
stage('linux test') {
agent{label "slave1_47"}
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
options { skipDefaultCheckout() }
when {
changeRequest()

View File

@ -92,11 +92,9 @@ async function all_type_example() {
}
async function test() {
console.log("begin all_type_query")
await json_tag_example()
await all_type_example()
taos.destroy();
console.log("end all_type_query")
}
test()

View File

@ -139,11 +139,9 @@ async function all_type_example() {
}
async function test() {
console.log("begin all_type_stmt")
await json_tag_example()
await all_type_example()
taos.destroy();
console.log("end all_type_stmt")
}
test()

View File

@ -16,7 +16,7 @@ async function createConnect() {
}
async function schemalessInsert() {
async function test() {
let wsSql = null;
let wsRows = null;
let ttl = 0;
@ -42,10 +42,4 @@ async function schemalessInsert() {
}
}
async function test() {
console.log("begin line_example")
await schemalessInsert();
console.log("end line_example")
}
test()

View File

@ -22,7 +22,7 @@ async function createConnect() {
return await taos.sqlConnect(conf);
}
async function execSql() {
async function test() {
let wsSql = null;
let wsRows = null;
let reqId = 0;
@ -60,7 +60,7 @@ async function execSql() {
}
catch (err) {
console.error(err.code, err.message);
process.exitCode = 1;
throw err;
}
finally {
if (wsRows) {
@ -73,10 +73,4 @@ async function execSql() {
}
}
async function test() {
console.log("begin nodejsChecker")
await execSql();
console.log("end nodejsChecker")
}
test()

View File

@ -136,13 +136,11 @@ async function sqlWithReqid() {
// ANCHOR_END: sqlWithReqid
async function test() {
console.log("begin sql_example")
await createDbAndTable();
await insertData();
await queryData();
await sqlWithReqid();
taos.destroy();
console.log("end sql_example")
}
test()

View File

@ -23,7 +23,7 @@ async function prepare() {
return wsSql
}
async function stmtInsert() {
async function test() {
let stmt = null;
let connector = null;
try {
@ -73,10 +73,4 @@ async function stmtInsert() {
}
}
async function test () {
console.log("begin stmt_example")
await stmtInsert();
console.log("end stmt_example")
}
test()

View File

@ -86,7 +86,7 @@ async function subscribe(consumer) {
// ANCHOR_END: commit
}
async function consumer() {
async function test() {
// ANCHOR: unsubscribe
let consumer = null;
try {
@ -113,10 +113,4 @@ async function consumer() {
// ANCHOR_END: unsubscribe
}
async function test() {
console.log("begin tmq_example")
await consumer();
console.log("end tmq_example")
}
test()

View File

@ -82,7 +82,7 @@ async function subscribe(consumer) {
}
// ANCHOR_END: offset
async function consumer() {
async function test() {
let consumer = null;
try {
await prepare();
@ -107,10 +107,4 @@ async function consumer() {
}
}
async function test() {
console.log("begin tmq_example")
await consumer();
console.log("end tmq_example")
}
test()