Skip to content

Commit 7ef9819

Browse files
juanpedromorenoraulraja
authored andcommitted
Creates different evaluator instances each time (#532)
1 parent 22e2712 commit 7ef9819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/scalaexercises/exercises/MethodEval.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class MethodEval() {
6464
import EvalResult._
6565

6666
val timeout = 20.seconds
67-
private val evaluator = new Evaluator(timeout)
67+
private def evaluator = new Evaluator(timeout)
6868

6969
def eval[T](pkg: String, qualifiedMethod: String, rawArgs: List[String], imports: List[String] = Nil): EvaluationResult[_] = {
7070
val pre = (s"import $pkg._" :: imports).mkString(System.lineSeparator)

0 commit comments

Comments
 (0)