Tests rollback stuck at reverting #3379
Unanswered
backspacerhino
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been experiencing this for a long time now. Any help would be appreciated
Versions:
Doesn't matter, happens with all versions as early as v5 preview (maybe even in v4, don't remember)
Setup:
Error:
Get stuck at reverting... if any test fails while bail: true
❯ reverting database/migrations/1593068265953_create_accounts
Expected:
That all of my migrations revert successfully. (as is the case when no errors or when bail is set to false)
Additional information:
I did some digging in the adonis core and found that the line when it gets stuck is
await trackedCall
in SchemaAlso, trackedCall can be Knex.SchemaBuilder or DeferCallback but here it is Knex.SchemaBuilder due to previous check for function( in case its DeferCallback).
How are you able to call just
await trackedCall
instead ofawait trackedCall()
as a) it being an object and b) not specifying()
? Is it something related to it extending EventEmitter?Beta Was this translation helpful? Give feedback.
All reactions