Skip to content

Commit

Permalink
pass on windows
Browse files Browse the repository at this point in the history
Using QuiltPathFactory.parse
  • Loading branch information
drernie committed Sep 3, 2024
1 parent 027d291 commit aa2ac3e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ package nextflow.quilt.nio
import nextflow.quilt.QuiltSpecification
import groovy.transform.CompileDynamic
import java.nio.file.Path
import java.nio.file.Paths
import java.nio.file.Files
import java.nio.file.CopyOption
import java.nio.file.StandardCopyOption
import groovy.util.logging.Slf4j
import spock.lang.IgnoreIf

/**
*
Expand All @@ -30,12 +28,11 @@ class QuiltFileSystemProviderTest extends QuiltSpecification {
// newDirectoryStream returns package path for write
// do we need a new schema for quilt+local?

@IgnoreIf({ System.getProperty('os.name').contains('indows') })
void 'should download file from remote to local destination'() {
given:
QuiltFileSystemProvider provider = new QuiltFileSystemProvider()
String filename = 'README.md'
Path remoteFile = Paths.get('quilt+s3://quilt-example#package=examples%2fhurdat2&path=' + filename)
Path remoteFile = QuiltPathFactory.parse('quilt+s3://quilt-example#package=examples%2fhurdat2&path=' + filename)
Path tempFolder = Files.createTempDirectory('quilt')
Path tempFile = tempFolder.resolve(filename)

Expand All @@ -50,7 +47,7 @@ class QuiltFileSystemProviderTest extends QuiltSpecification {
void 'should download folders from remote to local destination'() {
given:
QuiltFileSystemProvider provider = new QuiltFileSystemProvider()
Path remoteFolder = Paths.get('quilt+s3://quilt-example#package=examples%2fhurdat2')
Path remoteFolder = QuiltPathFactory.parse('quilt+s3://quilt-example#package=examples%2fhurdat2')
Path tempFolder = Files.createTempDirectory('quilt')
CopyOption opt = StandardCopyOption.REPLACE_EXISTING
when:
Expand Down

0 comments on commit aa2ac3e

Please sign in to comment.