From 9ba8c4e59bb5cdd342c89b7838e0bbc2bec90ad0 Mon Sep 17 00:00:00 2001 From: Olivier Melois Date: Sun, 20 Sep 2020 21:48:01 +0200 Subject: [PATCH] String => TestName in monix-bio --- .../monixBio/src/weaver/monixbiocompat/suites.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/monixBio/src/weaver/monixbiocompat/suites.scala b/modules/monixBio/src/weaver/monixbiocompat/suites.scala index e446c56b..637db1f8 100644 --- a/modules/monixBio/src/weaver/monixbiocompat/suites.scala +++ b/modules/monixBio/src/weaver/monixbiocompat/suites.scala @@ -44,17 +44,17 @@ trait MutableIOSuite extends MutableFSuite[Task] with BaseIOSuite with Expectations.Helpers { - override def test(name: String): PartiallyAppliedTest = + override def test(name: TestName): PartiallyAppliedTest = new SubPartiallyAppliedTest(name) - class SubPartiallyAppliedTest(name: String) + class SubPartiallyAppliedTest(name: TestName) extends super.PartiallyAppliedTest(name) { override def apply(run: => Task[Expectations]): Unit = - registerTest(name)(_ => Test(name, run)) + registerTest(name)(_ => Test(name.name, run)) override def apply(run: Res => Task[Expectations]): Unit = - registerTest(name)(res => Test(name, run(res))) + registerTest(name)(res => Test(name.name, run(res))) override def apply(run: (Res, Log[Task]) => Task[Expectations]): Unit = - registerTest(name)(res => Test(name, log => run(res, log))) + registerTest(name)(res => Test(name.name, log => run(res, log))) } }