Skip to content

Commit 10fd841

Browse files
committed
Fix failing test
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent dd52b69 commit 10fd841

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

plugins/nf-wave/src/test/io/seqera/wave/plugin/config/WaveConfigTest.groovy

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package io.seqera.wave.plugin.config
1919

20-
20+
import nextflow.util.Duration
2121
import spock.lang.Specification
2222
import spock.lang.Unroll
2323

@@ -159,7 +159,7 @@ class WaveConfigTest extends Specification {
159159
opts.retryOpts().maxDelay == Duration.of('90s')
160160

161161
when:
162-
opts = new WaveConfig([retryPolicy:[ maxAttempts: 20, jitter: 1.0, delay: '1s', maxDelay: '10s' ]])
162+
opts = new WaveConfig([retry:[ maxAttempts: 20, jitter: 1.0, delay: '1s', maxDelay: '10s' ]])
163163
then:
164164
opts.retryOpts().maxAttempts == 20
165165
opts.retryOpts().jitter == 1.0d
@@ -176,15 +176,4 @@ class WaveConfigTest extends Specification {
176176
opts.retryOpts().maxDelay == Duration.of('40s')
177177
}
178178

179-
def 'should get http config options' () {
180-
when:
181-
def opts = new WaveConfig([:])
182-
then:
183-
opts.httpOpts().connectTimeout() == java.time.Duration.ofSeconds(30)
184-
185-
when:
186-
opts = new WaveConfig([httpClient: [connectTimeout: '90s']])
187-
then:
188-
opts.httpOpts().connectTimeout() == java.time.Duration.ofSeconds(90)
189-
}
190179
}

0 commit comments

Comments
 (0)