Skip to content

Commit 4dc0334

Browse files
committed
ci: try to resolve flaky pg test
1 parent 8e6f588 commit 4dc0334

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/transaction.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ if (current.dialect.supports.transactions) {
124124
return this.sequelize.transaction({
125125
isolationLevel: Transaction.ISOLATION_LEVELS.SERIALIZABLE
126126
}, async t => {
127+
await delay(1000);
127128
await SumSumSum.sum('value', { transaction: t });
129+
await delay(1000);
128130
await SumSumSum.create({ value: -val }, { transaction: t });
131+
await delay(1000);
129132
});
130133
};
131134

0 commit comments

Comments
 (0)