Skip to content

Commit 3826dc7

Browse files
feature: new allowNull attribute in input/output path
run input and output nullable tests as independent tests Signed-off-by: Jorge Aguilera <jorge.aguilera@seqera.io>
1 parent bc08d37 commit 3826dc7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ class OutputNullablePathTest extends Dsl2Spec {
1717

1818
def 'should fails if allowNull output is not set'() {
1919
given:
20+
def error = false
2021
def session = new Session( executor: 'nope' ) {
2122
@Override
2223
void abort(Throwable cause) {
2324
forceTermination()
25+
error = true
2426
}
2527
}
2628

@@ -45,7 +47,7 @@ class OutputNullablePathTest extends Dsl2Spec {
4547
runner.setScript(script).execute()
4648

4749
then:
48-
session.workflowMetadata.stats.failedCount==1
50+
error
4951
}
5052

5153
}

0 commit comments

Comments
 (0)