Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mcollina
Copy link
Member

Signed-off-by: Matteo Collina [email protected]
Fixes: fastify/fastify#4125

Checklist

Copy link
Member

@zekth zekth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 865a454 into master Jul 11, 2022
@mcollina mcollina deleted the fix-ready-bad-promise-chain branch July 11, 2022 10:59
t.equal(record, 'plugin0|plugin1|plugin2|ready')
})

test('await use - fork the promise chain', { only: true }, (t) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does only:true mean?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be removed, it tells to tap to only run this test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing. If it's run with TAP_ONLY=true env variable, it would run only this test. I'll remove, good spot!

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.

Fastify didn't await register of the first plugin before register a second

5 participants