[ARVADOS] updated: d954b40925d8315ede49e9a05c05c0ba24a74ba9
git at public.curoverse.com
git at public.curoverse.com
Wed Oct 28 11:35:41 EDT 2015
Summary of changes:
tools/keep-rsync/keep-rsync_test.go | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
via d954b40925d8315ede49e9a05c05c0ba24a74ba9 (commit)
from f76d7ea1946e2ed67c8d64e13f49c885c5add83b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d954b40925d8315ede49e9a05c05c0ba24a74ba9
Author: radhika <radhika at curoverse.com>
Date: Wed Oct 28 11:33:46 2015 -0400
refs #7167
Add a log statement to see why the test failed intermittently.
diff --git a/tools/keep-rsync/keep-rsync_test.go b/tools/keep-rsync/keep-rsync_test.go
index 6fbb535..1cef216 100644
--- 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"
+ "log"
"os"
"strings"
"testing"
@@ -327,7 +328,8 @@ func (s *ServerRequiredSuite) TestErrorDuringRsync_FakeSrcKeepservers(c *C) {
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.
@@ -338,7 +340,8 @@ func (s *ServerRequiredSuite) TestErrorDuringRsync_FakeDstKeepservers(c *C) {
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.
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list