StackOverflow on expectMsgAllConformingOf
The following blows the stack:
"This test" should {
"overflow" in {
self ! 1
expectMsgAllConformingOf[AnyVal](2 seconds, classOf[Int])
}
}
The result is a StackOverflowError. It appears the expect function calls itself rather than the corresponding _internal version.
In fact, the non-duration version of ...ConformingOf does not use the _internal function either but instead calls expectMsgAllClassOf(), this may also be a bug.
"This test" should {
"overflow" in {
self ! 1
expectMsgAllConformingOf[AnyVal](2 seconds, classOf[Int])
}
}
The result is a StackOverflowError. It appears the expect function calls itself rather than the corresponding _internal version.
In fact, the non-duration version of ...ConformingOf does not use the _internal function either but instead calls expectMsgAllClassOf(), this may also be a bug.
Leave a comment