Skip to content

Commit 519907b

Browse files
feature: emit nullable path in tuples
removed test as hang the build after rebase instead use integration test Signed-off-by: Jorge Aguilera <jorge.aguilera@seqera.io>
1 parent b121fac commit 519907b

4 files changed

Lines changed: 7 additions & 123 deletions

File tree

modules/nextflow/src/test/groovy/nextflow/script/InputNullablePathTest.groovy

Lines changed: 0 additions & 65 deletions
This file was deleted.

modules/nextflow/src/test/groovy/nextflow/script/OutputNullablePathTest.groovy

Lines changed: 0 additions & 50 deletions
This file was deleted.

modules/nextflow/src/test/groovy/nextflow/script/ScriptDslTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ class ScriptDslTest extends Dsl2Spec {
519519
def 'should fail because process is not defined'() {
520520
when:
521521
dsl_eval(
522-
'''
522+
'''
523523
process sleeper {
524524
exec:
525525
"""

modules/nextflow/src/test/groovy/nextflow/script/ScriptRunnerTest.groovy

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,21 @@ class ScriptRunnerTest extends Specification {
203203

204204
def runner = new TestScriptRunner(session)
205205

206-
def randomVar = Nextflow.randomString(5,false)
207-
def script = """
206+
def script = '''
208207
process test {
209208
script:
210-
"echo \$$randomVar"
209+
"echo $HELLO"
211210
}
212211
213-
"""
214-
println script
212+
'''
213+
215214
when:
216215
runner.setScript(script).execute()
217216
then:
218217
session.fault.error instanceof ProcessUnrecoverableException
219218
session.fault.error.cause instanceof MissingPropertyException
220-
session.fault.error.cause.message =~ /Unknown variable '$randomVar' -- .*/
221-
session.fault.report =~ /No such variable: $randomVar -- .*/
219+
session.fault.error.cause.message =~ /Unknown variable 'HELLO' -- .*/
220+
session.fault.report =~ /No such variable: HELLO -- .*/
222221

223222
}
224223

0 commit comments

Comments
 (0)