projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 7492-keepproxy-upstream-errors
[arvados.git]
/
tools
/
keep-rsync
/
keep-rsync_test.go
diff --git
a/tools/keep-rsync/keep-rsync_test.go
b/tools/keep-rsync/keep-rsync_test.go
index 60bc90acff68f56f9015a611f6e83639d7676569..143e1552272ae1e5f09dd2224861e3309d83d743 100644
(file)
--- a/
tools/keep-rsync/keep-rsync_test.go
+++ b/
tools/keep-rsync/keep-rsync_test.go
@@
-4,6
+4,7
@@
import (
"crypto/md5"
"fmt"
"io/ioutil"
"crypto/md5"
"fmt"
"io/ioutil"
+ "log"
"os"
"strings"
"testing"
"os"
"strings"
"testing"
@@
-327,7
+328,8
@@
func (s *ServerRequiredSuite) TestErrorDuringRsync_FakeSrcKeepservers(c *C) {
setupRsync(c, false, 1)
err := performKeepRsync(kcSrc, kcDst, "", "")
setupRsync(c, false, 1)
err := performKeepRsync(kcSrc, kcDst, "", "")
- c.Check(strings.HasSuffix(err.Error(), "no such host"), Equals, true)
+ log.Printf("Err = %v", err)
+ c.Check(strings.Contains(err.Error(), "no such host"), Equals, true)
}
// Setup rsync using dstKeepServicesJSON with fake keepservers.
}
// Setup rsync using dstKeepServicesJSON with fake keepservers.
@@
-338,7
+340,8
@@
func (s *ServerRequiredSuite) TestErrorDuringRsync_FakeDstKeepservers(c *C) {
setupRsync(c, false, 1)
err := performKeepRsync(kcSrc, kcDst, "", "")
setupRsync(c, false, 1)
err := performKeepRsync(kcSrc, kcDst, "", "")
- c.Check(strings.HasSuffix(err.Error(), "no such host"), Equals, true)
+ log.Printf("Err = %v", err)
+ c.Check(strings.Contains(err.Error(), "no such host"), Equals, true)
}
// Test rsync with signature error during Get from src.
}
// Test rsync with signature error during Get from src.