summaryrefslogtreecommitdiff
path: root/core/src/test/scala/mill/util/TestUtil.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/scala/mill/util/TestUtil.scala')
-rw-r--r--core/src/test/scala/mill/util/TestUtil.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/scala/mill/util/TestUtil.scala b/core/src/test/scala/mill/util/TestUtil.scala
index 88d28f8a..ae985665 100644
--- a/core/src/test/scala/mill/util/TestUtil.scala
+++ b/core/src/test/scala/mill/util/TestUtil.scala
@@ -18,7 +18,7 @@ object TestUtil {
implicitly,
implicitly,
BasePath(ammonite.ops.pwd / millModuleEnclosing0.value),
- Segments(Nil),
+ Segments(),
implicitly
)
)
@@ -51,7 +51,7 @@ object TestUtil {
val pure: Boolean)
(implicit ctx0: Module.Ctx)
extends Test(inputs) with Target[Int]{
- val ctx = ctx0.copy(segments0 = Segments(ctx0.segments0.value :+ ctx0.segment))
+ val ctx = ctx0.copy(segments0 = ctx0.segments0 ++ Seq(ctx0.segment))
val readWrite = upickle.default.IntRW