Skip to content

Commit

Permalink
edited some variable names in the QCC testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Sep 19, 2023
1 parent dd9da02 commit b827f5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/testHTAP.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ describe('Query Context Cache test', function () {
},
];

function createTests () {
const functionArray = [];
function createQueryTest () {
const testingSet = [];
for(let i = 0; i < querySet.length; i++) {
const testingFunction = function(callback) {
const {sqlTexts,QccSize} = querySet[i];
Expand All @@ -71,16 +71,16 @@ describe('Query Context Cache test', function () {
assert.strictEqual(stmt.getQueryContextCacheSize(), QccSize);
assert.strictEqual(stmt.getQueryContextDTOSize(),QccSize);
callback();

}
});
};
functionArray.push(testingFunction);
testingSet.push(testingFunction);
}
return functionArray;
return testingSet;
}

it('test Query Context Cache', function (done) {
let queryTests = createQueryTest();
async.series(
[
function (callback) {
Expand All @@ -92,7 +92,7 @@ describe('Query Context Cache test', function () {
callback();
});
},
...createTests()
...queryTests
],
function () {
done();
Expand Down

0 comments on commit b827f5c

Please sign in to comment.