Uh oh!
There was an error while loading. Please reload this page.
test(clitools): revive run_inprocess() - #3891
Conversation
bee5aee to
8a77505Compare8a77505 to
2261e26CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
djc
commented
Jun 18, 2024
What do you mean? It seems pretty mucht right to me. |
rami3l
commented
Jun 18, 2024
@djc The previous implementation used a unique runtime and a static |
djc
commented
Jun 18, 2024
Do you mean because I've tied the |
@djc Indeed, that would be interesting. One trap I've encountered here is that currently |
djc
commented
Jun 18, 2024
We could explicitly stick a |
rami3l
commented
Jun 18, 2024
@djc That's also where I want it to be, however the current state is still far from it. |
djc
commented
Jun 18, 2024
Why far? If we just remove the explicit runtime builder and add |
@djc Nothing in theory. However, as I've explained already, it's just that OTOH, actually making the tests async (and adding Anyway, I think this PR is ready to go as a first step. Please feel free to propose improvements in the subsequent ones. |
This PR re-enables testing via the
run_inprocess()function, which was originally introduced in #2367 but temporarily disabled in #3868.Please note that this is a dirty fix as so far all in-process tests are still synchronous, and a
tokioruntime builder has been re-introduced to handle the async-ness ofrustup_init::main()as well as the need of initializing anotelsubscriber in an async context.