Skip to content

Commit 24fcd22

Browse files
committed
revert the test to the simpler working version
1 parent d5427d2 commit 24fcd22

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

modules/core/src/main/scala/org/scalasteward/core/application/SelfCheckAlg.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ final class SelfCheckAlg[F[_]](config: Config)(implicit
5252
.ifM(
5353
F.unit,
5454
logger.warn(
55-
"""
56-
|The workspace is empty.
57-
|This is expected if this is your first Scala Steward run.
58-
|Make sure to preserve the workspace between runs for all features to work as expected.
59-
|https://github.com/scala-steward-org/scala-steward/blob/main/docs/faq.md#why-doesnt-self-hosted-scala-steward-close-obsolete-prs
60-
|""".stripMargin
55+
s"""
56+
|The workspace directory is empty: '${config.workspace}'
57+
|This is expected if this is your first Scala Steward run.
58+
|Make sure to preserve the workspace between runs for all features to work as expected.
59+
|https://github.com/scala-steward-org/scala-steward/blob/main/docs/faq.md#why-doesnt-self-hosted-scala-steward-close-obsolete-prs
60+
|""".stripMargin
6161
)
6262
)
6363

modules/core/src/test/scala/org/scalasteward/core/application/StewardAlgTest.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ import org.scalasteward.core.mock.MockContext.context.stewardAlg
66
import org.scalasteward.core.mock.MockState
77

88
class StewardAlgTest extends CatsEffectSuite {
9-
109
test("runF") {
11-
val stateExit = stewardAlg.runF.runSA(MockState.empty)
12-
assertIO(stateExit.map(_._2), ExitCode.Success) *>
13-
assertIOBoolean(
14-
stateExit.map(_._1.trace.exists(te => te.toString.contains("The workspace is empty")))
15-
)
10+
val exitCode = stewardAlg.runF.runA(MockState.empty)
11+
assertIO(exitCode, ExitCode.Success)
1612
}
1713
}

0 commit comments

Comments
 (0)