We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
One line assert from org.scalatest.diagrams.Diagrams calls Future two times:
assert
org.scalatest.diagrams.Diagrams
Future
import org.scalatest.diagrams.Diagrams import org.scalatest.funsuite.AnyFunSuite import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration.{Duration, SECONDS} import scala.concurrent.{Await, Future} class ReproduceTest extends AnyFunSuite with Diagrams { test("reproduce") { assert(Await.result(Future { println("in future"); 42 }, Duration(1, SECONDS)) == 42) } }
result:
in future in future
Two line assert is ok:
assert(Await.result(Future { println("in future"); 42 }, Duration(1, SECONDS)) == 42)
in future
Checked versions:
The text was updated successfully, but these errors were encountered:
@antarcticer Fyi I submitted the following PR for this:
#2219
If it is approved by @bvenners , we can include this in the upcoming 3.2.15 release.
Sorry, something went wrong.
No branches or pull requests
One line
assert
fromorg.scalatest.diagrams.Diagrams
callsFuture
two times:result:
Two line
assert
is ok:result:
Checked versions:
The text was updated successfully, but these errors were encountered: