diff --git a/integration-tests/__tests__/schema-tests.spec.js b/integration-tests/__tests__/schema-tests.spec.js index 8aa4b962..cb823d09 100644 --- a/integration-tests/__tests__/schema-tests.spec.js +++ b/integration-tests/__tests__/schema-tests.spec.js @@ -1,7 +1,7 @@ const stableStringify = require('json-stable-stringify'); const _ = require('lodash'); const fp = require('lodash/fp'); -const { testWrapper, extractConnection } = require('../tools'); +const { testWrapper } = require('../tools'); const engines = require('../engines'); const { runCommandOnDriver } = require('dbgate-tools'); @@ -54,25 +54,6 @@ describe('Schema tests', () => { expect(structure2).toBeNull(); }) ); - - test.each(engines.filter(x => x.supportSchemas).map(engine => [engine.label, engine]))( - 'Table inside schema - %s', - testWrapper(async (conn, driver, engine) => { - await baseStructure(conn, driver); - await runCommandOnDriver(conn, driver, dmp => dmp.createSchema('myschema')); - - const schemaConnDef = { - ...extractConnection(engine), - database: `${conn._database_name}::myschema`, - }; - - const schemaConn = await driver.connect(schemaConnDef); - await driver.query(schemaConn, `create table myschema.myt1 (id int not null primary key)`); - const structure1 = await driver.analyseFull(schemaConn); - expect(structure1.tables.length).toEqual(1); - expect(structure1.tables[0].tableName).toEqual('myt1'); - }) - ); }); describe('Base analyser test', () => {