Skip to content

Commit

Permalink
Minor test improvements [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Oct 21, 2023
1 parent e952299 commit 171831e
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@

package nextflow.plugin.extension

import nextflow.plugin.hello.HelloExtension

import java.nio.file.Path

import nextflow.Channel
import nextflow.exception.DuplicateModuleFunctionException
import nextflow.plugin.Plugins
import nextflow.plugin.TestPluginManager
import nextflow.plugin.extension.PluginExtensionProvider
import spock.lang.Shared
import spock.lang.TempDir
import test.Dsl2Spec
import test.MockScriptRunner
/**
*
* @author Jorge Aguilera <[email protected]>
Expand Down Expand Up @@ -202,7 +198,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
'''

when:
def result = dsl_eval(SCRIPT_TEXT)
dsl_eval(SCRIPT_TEXT)

then:
thrown(IllegalStateException)
Expand Down Expand Up @@ -245,7 +241,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
'''

when:
def result = dsl_eval(SCRIPT_TEXT)
dsl_eval(SCRIPT_TEXT)

then:
thrown(IllegalStateException)
Expand Down Expand Up @@ -338,7 +334,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
'''

when:
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute()
def result = dsl_eval(SCRIPT)

then:
result.val == 'hi'
Expand Down Expand Up @@ -407,7 +403,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
SCRIPT.text = SCRIPT_TEXT

when:
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute()
def result = dsl_eval(SCRIPT)

then:
result.val == EXPECTED
Expand Down Expand Up @@ -445,7 +441,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
""".stripIndent()

when:
new MockScriptRunner([:]).setScript(SCRIPT).execute()
dsl_eval(SCRIPT)

then:
thrown(DuplicateModuleFunctionException)
Expand Down Expand Up @@ -491,7 +487,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec {
""".stripIndent()

when:
new MockScriptRunner([:]).setScript(SCRIPT).execute()
dsl_eval(SCRIPT)

then:
thrown(DuplicateModuleFunctionException)
Expand Down

0 comments on commit 171831e

Please sign in to comment.