-
Notifications
You must be signed in to change notification settings - Fork 126
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
Quick fix to get new Scala collections compatibility in test. #228
Quick fix to get new Scala collections compatibility in test. #228
Conversation
The deprecated |
compiler.assertNMeasuredStatements(11) | ||
// 2 statements for the two applies in Seq, one for each literal which is 6, one for the operation passed to yield. | ||
// Depending on the collections api version, there can be additional implicit canBuildFrom statements. | ||
compiler.assertAtLeastNStatements(9) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can check the version of Scala here and expect different number of statements based on it:
val expectedStatementsCount = if (ScoverageCompiler.ShortScalaVersion < "2.13") 11 else 9
compiler.assertNMeasuredStatements(expectedStatementsCount)
@@ -33,7 +32,7 @@ class InvokerConcurrencyTest extends FunSuite with BeforeAndAfter { | |||
Future { | |||
Invoker.invoked(i, measurementDir.toString) | |||
} | |||
}(breakOut) | |||
}.toList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we don't need a list here, set would be good (val futures: Set[Future[Unit]] ...
)
Thank you @JanBessai for your PR. |
Done. I've also removed some deprecated calls to prevent future breakage. |
Thank you Jan |
As described in #225 .