Skip to content

Commit

Permalink
[misc] ensure test reliability with maxscale/skysql ha
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jun 10, 2021
1 parent e49dfdf commit 2f97a35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/test-batch.js
Expand Up @@ -1371,9 +1371,11 @@ describe('batch', () => {
it('rewrite split for maxAllowedPacket', async function () {
const t = makeid(100);
const conn = await base.createConnection({ bulk: false, maxAllowedPacket: 150 });
conn.query('DROP TABLE IF EXISTS my_table');
conn.query('CREATE TABLE my_table(id int, val LONGTEXT)');
await conn.query('DROP TABLE IF EXISTS my_table');
await conn.query('CREATE TABLE my_table(id int, val LONGTEXT)');
await conn.query('FLUSH TABLES');
await conn.query('START TRANSACTION');

await conn.batch('INSERT INTO my_table(id,val) VALUES( ?, ?) ', [
[1, t],
[2, t]
Expand Down

0 comments on commit 2f97a35

Please sign in to comment.