Skip to content

Commit

Permalink
#461: corrected test string checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte committed Jul 12, 2018
1 parent f93a109 commit de6aa5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestS3Remote(t *testing.T) {
citools.RunOnNode(t, node1, s3cmd+" put subset/subdir.txt s3://test.dotmesh/subset/subdir.txt")
citools.RunOnNode(t, node1, "dm s3 clone-subset test-real-s3 test.dotmesh subset/ --local-name="+fsname)
resp := citools.OutputFromRunOnNode(t, node1, citools.DockerRun(fsname)+" ls /foo/")
if !strings.Contains(resp, "/subset/subdir.txt") {
if !strings.Contains(resp, "subset") {
t.Error("Did not find subset dir")
}
if strings.Contains(resp, "hello-world.txt") {
Expand All @@ -185,7 +185,7 @@ func TestS3Remote(t *testing.T) {
fsname2 := citools.UniqName()
citools.RunOnNode(t, node1, "dm s3 clone-subset test-real-s3 test.dotmesh hello- --local-name="+fsname2)
resp = citools.OutputFromRunOnNode(t, node1, citools.DockerRun(fsname2)+" ls /foo/")
if strings.Contains(resp, "/subset/subdir.txt") {
if strings.Contains(resp, "subset") {
t.Error("Found files which shouldn't be cloned")
}
if !strings.Contains(resp, "hello-world.txt") {
Expand All @@ -196,7 +196,7 @@ func TestS3Remote(t *testing.T) {
citools.RunOnNode(t, node1, s3cmd+" put newfile.txt s3://test.dotmesh")
citools.RunOnNode(t, node1, "dm s3 clone-subset test-real-s3 test.dotmesh hello-,newfile.txt --local-name="+fsname3)
resp = citools.OutputFromRunOnNode(t, node1, citools.DockerRun(fsname3)+" ls /foo/")
if strings.Contains(resp, "/subset/subdir.txt") {
if strings.Contains(resp, "subset") {
t.Error("Found files which shouldn't be cloned")
}
if !strings.Contains(resp, "hello-world.txt") {
Expand Down

0 comments on commit de6aa5e

Please sign in to comment.