Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a method to run any queued-up tasks on the SerialExecutionContext #2316

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion jvm/core/src/main/scala/org/scalatest/AsyncTestSuite.scala
Expand Up @@ -213,7 +213,9 @@ import enablers.Futuristic
*/
trait AsyncTestSuite extends Suite with RecoverMethods with CompleteLastly { thisAsyncTestSuite =>

private final val serialExecutionContext: ExecutionContext = new concurrent.SerialExecutionContext
private final val serialExecutionContext = new concurrent.SerialExecutionContext

protected def executeSerialECTasks(): Unit = serialExecutionContext.runNow(Future.successful(Succeeded))

/**
* An implicit execution context used by async styles to transform <code>Future[Assertion]</code> values
Expand Down