Skip to content

test: add pool rejection test - #1

Merged
holm merged 1 commit into
holm:pr/transaction_rollbackfrom
clncln1:patch-1
Mar 16, 2018
Merged

holm merged 1 commit into
holm:pr/transaction_rollbackfrom
clncln1:patch-1

Conversation

@clncln1

@clncln1 clncln1 commented Mar 16, 2018

Copy link
Copy Markdown

adds a test to validate the change of PR sequelize#9051

this essentially creates a pool with max instances set to 1 and then tries to create two unmanaged transactions.
without the proposed fix, this will result in an unhandled promise rejection.
with the fix, the second call to sequelize.transaction is being rejected with the pool time out error (expected behaviour)

@holm

holm commented Mar 16, 2018

Copy link
Copy Markdown
Owner

Great, thanks!

@holm
holm merged commit 139aa4b into holm:pr/transaction_rollback Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants