Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Aug 11, 2023
1 parent dd52b69 commit 10fd841
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package io.seqera.wave.plugin.config


import nextflow.util.Duration
import spock.lang.Specification
import spock.lang.Unroll

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

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

def 'should get http config options' () {
when:
def opts = new WaveConfig([:])
then:
opts.httpOpts().connectTimeout() == java.time.Duration.ofSeconds(30)

when:
opts = new WaveConfig([httpClient: [connectTimeout: '90s']])
then:
opts.httpOpts().connectTimeout() == java.time.Duration.ofSeconds(90)
}
}

0 comments on commit 10fd841

Please sign in to comment.