Skip to content

Commit de779e7

Browse files
committed
[FIXUP] more move insert
1 parent 9aa4718 commit de779e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/cubejs-clickhouse-driver/test/ClickHouseDriver.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('ClickHouseDriver', () => {
7979
jest.setTimeout(10 * 1000);
8080

8181
await doWithDriver(async (driver) => {
82-
await driver.query('DROP DATABASE test', []);
82+
await driver.command('DROP DATABASE test');
8383
});
8484

8585
if (container) {
@@ -151,7 +151,7 @@ describe('ClickHouseDriver', () => {
151151
try {
152152
await driver.createSchemaIfNotExists(name);
153153
} finally {
154-
await driver.query(`DROP DATABASE ${name}`, []);
154+
await driver.command(`DROP DATABASE ${name}`);
155155
}
156156
});
157157
});
@@ -198,7 +198,7 @@ describe('ClickHouseDriver', () => {
198198
date: '2019-04-30T00:00:00.000',
199199
}]);
200200
} finally {
201-
await driver.query(`DROP DATABASE ${name}`, []);
201+
await driver.command(`DROP DATABASE ${name}`);
202202
}
203203
});
204204
});
@@ -213,7 +213,7 @@ describe('ClickHouseDriver', () => {
213213
const values = await driver.query(`SELECT * FROM ${name}.test WHERE x = ?`, [2]);
214214
expect(values).toEqual([{ x: '2', s: 'str2' }]);
215215
} finally {
216-
await driver.query(`DROP DATABASE ${name}`, []);
216+
await driver.command(`DROP DATABASE ${name}`);
217217
}
218218
});
219219
});
@@ -242,7 +242,7 @@ describe('ClickHouseDriver', () => {
242242
}
243243
]);
244244
} finally {
245-
await driver.query(`DROP DATABASE ${name}`, []);
245+
await driver.command(`DROP DATABASE ${name}`);
246246
}
247247
});
248248
});

0 commit comments

Comments
 (0)