Skip to content

Commit

Permalink
[misc] skipping big sql import for xpand
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed May 29, 2023
1 parent 746b3ee commit 652b8cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/test-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require('../base.js');
const { assert } = require('chai');
const Conf = require('../conf');
const base = require('../base');
const { isXpand } = require('../base');

describe('sql file import', () => {
beforeEach(async function () {
Expand All @@ -31,7 +32,7 @@ describe('sql file import', () => {
});

it('big file import with direct connection options', async function () {
if (process.env.srv === 'maxscale' || process.env.srv === 'skysql-ha') this.skip();
if (process.env.srv === 'maxscale' || process.env.srv === 'skysql-ha' || isXpand()) this.skip();
this.timeout(10000);
await basePromise.importFile(
Object.assign({}, Conf.baseConfig, { file: __dirname + '/../tools/data-dump2.sql', database: 'fimp' })
Expand Down Expand Up @@ -157,7 +158,8 @@ describe('sql file import', () => {
});

it('big file import with direct connection options', function (done) {
if (process.env.srv === 'maxscale' || process.env.srv === 'skysql-ha') this.skip();
// skipping if takes too long
if (process.env.srv === 'maxscale' || process.env.srv === 'skysql-ha' || isXpand()) this.skip();
this.timeout(10000);
baseCallback.importFile(
Object.assign({}, Conf.baseConfig, { file: __dirname + '/../tools/data-dump2.sql', database: 'fimp' }),
Expand Down

0 comments on commit 652b8cf

Please sign in to comment.