Skip to content

Commit

Permalink
Ensure system properties aren't unexpectedly used in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed May 1, 2023
1 parent 635f42f commit 6323586
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/coursier/cputil/tests/ClassPathUtilTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package coursier.cputil.tests

import com.eed3si9n.expecty.Expecty.expect
import coursier.cputil.ClassPathUtil

import java.io.File

class ClassPathUtilTests extends munit.FunSuite {
Expand All @@ -24,7 +25,7 @@ class ClassPathUtilTests extends munit.FunSuite {
assert(input.nonEmpty)
assert(files.nonEmpty)

val res = ClassPathUtil.classPath(input).map(os.Path(_, os.pwd))
val res = ClassPathUtil.classPath(input, _ => None).map(os.Path(_, os.pwd))

expect(files == res)
}
Expand All @@ -40,7 +41,7 @@ class ClassPathUtilTests extends munit.FunSuite {
os.copy.into(f, tmpDir)

val sep = File.separator
val res = ClassPathUtil.classPath(s"$tmpDir$sep*").map(os.Path(_, os.pwd))
val res = ClassPathUtil.classPath(s"$tmpDir$sep*", _ => None).map(os.Path(_, os.pwd))

val expected = Seq(
"compiler-interface-1.3.5.jar",
Expand Down

0 comments on commit 6323586

Please sign in to comment.