Skip to content

feat: add async version of run

Jon Foss Mikalsen requested to merge async-run into master

Running tests that already has a runtime causes the sync dockertest run method to panic, as it tries to create a runtime within a runtime. I tried a workaround where we retrieve a handle to the runtime if there existed one and schedule the internal run_async_impl method on it, but it still causes the same panic.

This merge requested introduces a separate version of run, run_async that can be used when for async tests. My current use case for this feature is async tests tagged with tokio::test, which cannot be run on our current sync run method as explained above.

Merge request reports