fix 2 test errors #321
GitHub Actions / Test Report (2.13.10)
failed
Jan 31, 2024 in 0s
1 fail, 105 pass in 10s
Annotations
Check warning on line 0 in splain.plugin.ZIOSpec
github-actions / Test Report (2.13.10)
source3 (splain.plugin.ZIOSpec) failed
core/build/test-results/test/TEST-splain.plugin.ZIOSpec.xml
Raw output
org.scalatest.exceptions.TestFailedException: expected: <
newSource1.scala:12: error: type mismatch;
zio.ZIO[
source3.Server.Pizza┃source3.Server.Broccoli with
zio.Has[zio.console.Console.Service],
Nothing,
Unit
]
handler("blah", 1).unit
^
newSource1.scala:23: error: under -Xsource:3, inferred zio.ZIO[zio.console.Console with source3.Server.Pizza,Nothing,String] instead of zio.ZIO[zio.console.Console,Nothing,String] [quickfixable]
Scala 3 migration messages are errors under -Xsource:3. Use -Wconf / @nowarn to filter them or add -Xmigration to demote them to warnings.
Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=scala3-migration, site=source3.ServiceImpl.foo
def foo(s: String, i: Int) =
^
> but was: <
newSource1.scala:12: error: type mismatch;
zio.ZIO[
source3.Server.Pizza┃source3.Server.Broccoli with
zio.Has[zio.console.Console.Service],
Nothing,
Unit
]
handler("blah", 1).unit
^
>
at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
at splain.TestHelpers$SpecStringOps.must_$eq$eq(TestHelpers.scala:148)
at splain.TestHelpers.$anonfun$checkError$1(TestHelpers.scala:184)
at splain.TestHelpers.$anonfun$checkError$1$adapted(TestHelpers.scala:183)
at splain.SpecBase$File.$anonfun$check$3(SpecBase.scala:112)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funspec.AnyFunSpecLike$$anon$1.apply(AnyFunSpecLike.scala:517)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funspec.AnyFunSpec.withFixture(AnyFunSpec.scala:1631)
at org.scalatest.funspec.AnyFunSpecLike.invokeWithFixture$1(AnyFunSpecLike.scala:515)
at org.scalatest.funspec.AnyFunSpecLike.$anonfun$runTest$1(AnyFunSpecLike.scala:527)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funspec.AnyFunSpecLike.runTest(AnyFunSpecLike.scala:527)
at org.scalatest.funspec.AnyFunSpecLike.runTest$(AnyFunSpecLike.scala:509)
at org.scalatest.funspec.AnyFunSpec.runTest(AnyFunSpec.scala:1631)
at org.scalatest.funspec.AnyFunSpecLike.$anonfun$runTests$1(AnyFunSpecLike.scala:560)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:333)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funspec.AnyFunSpecLike.runTests(AnyFunSpecLike.scala:560)
at org.scalatest.funspec.AnyFunSpecLike.runTests$(AnyFunSpecLike.scala:559)
at org.scalatest.funspec.AnyFunSpec.runTests(AnyFunSpec.scala:1631)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funspec.AnyFunSpec.org$scalatest$funspec$AnyFunSpecLike$$super$run(AnyFunSpec.scala:1631)
at org.scalatest.funspec.AnyFunSpecLike.$anonfun$run$1(AnyFunSpecLike.scala:564)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funspec.AnyFunSpecLike.run(AnyFunSpecLike.scala:564)
at org.scalatest.funspec.AnyFunSpecLike.run$(AnyFunSpecLike.scala:563)
at org.scalatest.funspec.AnyFunSpec.run(AnyFunSpec.scala:1631)
at co.helmethair.scalatest.runtime.Executor.runScalatests(Executor.java:130)
at co.helmethair.scalatest.runtime.Executor.executeSuite(Executor.java:86)
at co.helmethair.scalatest.runtime.Executor.executeTest(Executor.java:53)
at co.helmethair.scalatest.runtime.Executor.lambda$executeSuite$2(Executor.java:82)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
at co.helmethair.scalatest.runtime.Executor.executeSuite(Executor.java:82)
at co.helmethair.scalatest.runtime.Executor.executeTest(Executor.java:60)
at co.helmethair.scalatest.ScalatestEngine.execute(ScalatestEngine.java:55)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:119)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:94)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:89)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Loading