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.scala14
1 files changed, 3 insertions, 11 deletions
diff --git a/core/src/test/scala/mill/util/TestUtil.scala b/core/src/test/scala/mill/util/TestUtil.scala
index c0985c97..1af12a74 100644
--- a/core/src/test/scala/mill/util/TestUtil.scala
+++ b/core/src/test/scala/mill/util/TestUtil.scala
@@ -12,16 +12,8 @@ object TestUtil {
millModuleLine0: sourcecode.Line,
millName0: sourcecode.Name,
overrides: Overrides)
- extends Module()(
- mill.define.Ctx.make(
- implicitly,
- implicitly,
- implicitly,
- BasePath(ammonite.ops.pwd / millModuleEnclosing0.value),
- Segments(),
- implicitly
- )
- )
+ extends mill.define.BaseModule(ammonite.ops.pwd / millModuleEnclosing0.value)
+
object test{
def anon(inputs: Task[Int]*) = new Test(inputs)
@@ -51,7 +43,7 @@ object TestUtil {
val pure: Boolean)
(implicit ctx0: mill.define.Ctx)
extends Test(inputs) with Target[Int]{
- val ctx = ctx0.copy(segments0 = ctx0.segments0 ++ Seq(ctx0.segment))
+ val ctx = ctx0.copy(segments = ctx0.segments ++ Seq(ctx0.segment))
val readWrite = upickle.default.IntRW