Fix TestHashSums

This commit is contained in:
Nick Craig-Wood 2017-06-06 23:21:47 +01:00
parent 3fe9448229
commit 74a3dfc4e1

View file

@ -405,7 +405,7 @@ func TestHashSums(t *testing.T) {
!strings.Contains(res, " empty space\n") {
t.Errorf("empty space missing: %q", res)
}
if !strings.Contains(res, "6548b156ea68a4e003e786df99eee76 potato2\n") &&
if !strings.Contains(res, "d6548b156ea68a4e003e786df99eee76 potato2\n") &&
!strings.Contains(res, " UNSUPPORTED potato2\n") &&
!strings.Contains(res, " potato2\n") {
t.Errorf("potato2 missing: %q", res)
@ -413,6 +413,7 @@ func TestHashSums(t *testing.T) {
// SHA1 Sum
buf.Reset()
err = fs.Sha1sum(r.fremote, &buf)
require.NoError(t, err)
res = buf.String()
@ -429,6 +430,7 @@ func TestHashSums(t *testing.T) {
// Dropbox Hash Sum
buf.Reset()
err = fs.DropboxHashSum(r.fremote, &buf)
require.NoError(t, err)
res = buf.String()