Resolve intermittent SODA test diff
This commit is contained in:
parent
a840577668
commit
9defb2735b
|
@ -36,8 +36,10 @@ describe('164. soda1.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
||||
|
|
|
@ -38,7 +38,10 @@ describe('179. soda11.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -36,7 +36,10 @@ describe('165. soda2.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -33,6 +33,8 @@ const dbconfig = require('./dbconfig.js');
|
|||
const sodaUtil = require('./sodaUtil.js');
|
||||
|
||||
describe('167. soda3.js', () => {
|
||||
|
||||
let isRunnable;
|
||||
let conn, sd, t_collections;
|
||||
let t_collectionNames = [
|
||||
"chris_1", "chris_2", "chris_3", "chris_4",
|
||||
|
@ -41,8 +43,11 @@ describe('167. soda3.js', () => {
|
|||
];
|
||||
|
||||
before('create collections', async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
isRunnable = await sodaUtil.checkPrerequisites();
|
||||
if (!isRunnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
|
||||
|
@ -61,6 +66,8 @@ describe('167. soda3.js', () => {
|
|||
}); // before
|
||||
|
||||
after('drop collections, close connection', async () => {
|
||||
if (!isRunnable) return;
|
||||
|
||||
try {
|
||||
if (t_collections) {
|
||||
await Promise.all(
|
||||
|
|
|
@ -36,7 +36,10 @@ describe('168. soda4.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -38,7 +38,10 @@ describe('173. soda5.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -38,7 +38,10 @@ describe('174. soda6.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -38,7 +38,10 @@ describe('175. soda7.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -38,7 +38,10 @@ describe('176. soda8.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
|
@ -36,7 +36,10 @@ describe('177. soda9.js', () => {
|
|||
|
||||
before(async function() {
|
||||
const runnable = await sodaUtil.checkPrerequisites();
|
||||
if (!runnable) this.skip();
|
||||
if (!runnable) {
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
await sodaUtil.cleanup();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue