不要怂,就是干,撸起袖子干!

Commit 4dc0334d by papb

ci: try to resolve flaky pg test

1 parent 8e6f5881
Showing with 3 additions and 0 deletions
......@@ -124,8 +124,11 @@ if (current.dialect.supports.transactions) {
return this.sequelize.transaction({
isolationLevel: Transaction.ISOLATION_LEVELS.SERIALIZABLE
}, async t => {
await delay(1000);
await SumSumSum.sum('value', { transaction: t });
await delay(1000);
await SumSumSum.create({ value: -val }, { transaction: t });
await delay(1000);
});
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!