Skip to content

Commit daf73ec

Browse files
committed
Fix test
1 parent 772d2b3 commit daf73ec

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/core/src/test/scala/org/scalasteward/core/update/PruningAlgTest.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import org.scalatest.funsuite.AnyFunSuite
77
import org.scalatest.matchers.should.Matchers
88

99
class PruningAlgTest extends AnyFunSuite with Matchers {
10+
private val defaultConf = config.defaultRepoConfigFile.map(_.toString).getOrElse("")
11+
1012
test("needsAttention") {
1113
val repo = Repo("fthomas", "scalafix-test")
1214
val repoCacheFile =
@@ -60,7 +62,7 @@ class PruningAlgTest extends AnyFunSuite with Matchers {
6062
state shouldBe initial.copy(
6163
commands = Vector(
6264
List("read", repoCacheFile.toString),
63-
List("read", config.defaultRepoConfigFile.toString),
65+
List("read", defaultConf),
6466
List("read", pullRequestsFile.toString)
6567
),
6668
logs = Vector(
@@ -168,7 +170,7 @@ class PruningAlgTest extends AnyFunSuite with Matchers {
168170
state shouldBe initial.copy(
169171
commands = Vector(
170172
List("read", repoCacheFile.toString),
171-
List("read", config.defaultRepoConfigFile.toString),
173+
List("read", defaultConf),
172174
List("read", pullRequestsFile.toString)
173175
),
174176
logs = Vector(
@@ -286,7 +288,7 @@ class PruningAlgTest extends AnyFunSuite with Matchers {
286288
state shouldBe initial.copy(
287289
commands = Vector(
288290
List("read", repoCacheFile.toString),
289-
List("read", config.defaultRepoConfigFile.toString),
291+
List("read", defaultConf),
290292
List("read", versionsFile.toString),
291293
List("read", pullRequestsFile.toString),
292294
List("read", versionsFile.toString),

0 commit comments

Comments
 (0)