Skip to content

Commit

Permalink
test: attempt to replicate issue #542
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Mar 22, 2024
1 parent 9767c78 commit 382e332
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/helpers/createIntegrationTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1347,4 +1347,45 @@ export const createIntegrationTests = (
['foo'],
);
});

test.only('replicate issue #542', async (t) => {
const pool = await createPool(t.context.dsn, {
PgPool,
});

await pool.connect(async (databaseConn) => {
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A1 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A2 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A3 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A4 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A5(col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A6 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A7 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A8 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A9 (col1 text)`,
);
await databaseConn.query(
sql.unsafe`CREATE TABLE IF NOT EXISTS A10 (col1 text)`,
);
});

t.true(true);
});
};

0 comments on commit 382e332

Please sign in to comment.