Further test refactoring

This commit is contained in:
Sharad Chandran R 2023-03-14 12:10:28 +05:30
parent 3d90642926
commit f3a1ea518d
6 changed files with 1206 additions and 1871 deletions

View File

@ -109,7 +109,6 @@ describe('100.binding_defaultBindIn.js', function() {
"END ; ";
let sqlRun = "BEGIN :output := " + fun_name + " (:i, :c); END;";
let proc_drop = "DROP FUNCTION " + fun_name;
// console.log(proc);
await connection.execute(createTable);
await connection.execute(proc);

View File

@ -98,7 +98,6 @@ describe('97.binding_functionBindOut.js', function() {
"END ; ";
let sqlRun = "BEGIN :output := " + fun_name + " (:i, :c); END;";
let proc_drop = "DROP FUNCTION " + fun_name;
// console.log(proc);
let inserted = getInsertVal(dbColType, nullBind);
let insertSql = "insert into " + table_name + " (id, content) values (:c1, :c2)";
await executeSql(createTable);
@ -107,7 +106,6 @@ describe('97.binding_functionBindOut.js', function() {
c2: { val: inserted[0], type: inserted[1], dir: oracledb.BIND_IN }
};
// console.log(insertSql);
await connection.execute(insertSql, bind);
await executeSql(proc);

View File

@ -104,7 +104,7 @@ describe('222. callTimeout.js', function() {
() => {
conn.callTimeout = TIME_OUT;
},
/NJS-004: invalid value for property callTimeout/
/NJS-004:/
);
}); // 222.4
@ -115,7 +115,7 @@ describe('222. callTimeout.js', function() {
() => {
conn.callTimeout = TIME_OUT;
},
/NJS-004: invalid value for property callTimeout/
/NJS-004:/
);
});
@ -126,7 +126,7 @@ describe('222. callTimeout.js', function() {
() => {
conn.callTimeout = TIME_OUT;
},
/NJS-004: invalid value for property callTimeout/
/NJS-004:/
);
});

File diff suppressed because it is too large Load Diff

View File

@ -437,5 +437,6 @@ testsUtil.checkUrowidLength = function(urowidLen, expectedLength) {
// ROWID is returned which has a fixed size of 18 bytes
if (dbConfig.test.isCloudService)
expectedLength = 18;
assert(urowidLen >= expectedLength);
assert(urowidLen >= expectedLength,
`${urowidLen} should be >= ${expectedLength}`);
};

View File

@ -560,4 +560,3 @@ describe('115. urowidDMLBindAsString2.js', function() {
};
});