Skip to content

Commit cdefe52

Browse files
committed
fix test
1 parent 13d8a1a commit cdefe52

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/test/scala/io/viash/platforms/nextflow/Vdsl3StandaloneTest.scala

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,19 @@ class Vdsl3StandaloneTest extends AnyFunSuite with BeforeAndAfterAll {
213213

214214

215215
test("Whether integers can be converted to doubles", NextflowTest) {
216+
// create params.yaml file
217+
val paramsPath = temporaryFolder.resolve("params.yaml")
218+
val paramsStr = """id: foo
219+
|input: resources/lines3.txt
220+
|double: 10
221+
|publish_dir: integerAsDouble
222+
|""".stripMargin
223+
Files.write(paramsPath, paramsStr.getBytes(StandardCharsets.UTF_8))
224+
216225
val (exitCode, stdOut, stdErr) = NextflowTestHelper.run(
217226
mainScript = "target/nextflow/integer_as_double/main.nf",
218-
args = List(
219-
"--id", "foo",
220-
"--input", "resources/lines3.txt",
221-
"--double", "10", // this should be an integer
222-
"--publish_dir", "integerAsDouble"
223-
),
227+
args = Nil,
228+
paramsFile = Some(paramsPath.toString()),
224229
cwd = tempFolFile
225230
)
226231

0 commit comments

Comments
 (0)