From e8daab7971fd6dcf120d7c8bb88a8be4aeb5a4b4 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 16 Jan 2016 09:44:46 +0000 Subject: [PATCH] Fix integration tests for remotes with unsupported hash schemes --- fs/operations_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/operations_test.go b/fs/operations_test.go index 7b2b059af..38380cae4 100644 --- a/fs/operations_test.go +++ b/fs/operations_test.go @@ -611,10 +611,12 @@ func TestMd5sum(t *testing.T) { } res := buf.String() if !strings.Contains(res, "d41d8cd98f00b204e9800998ecf8427e empty space\n") && + !strings.Contains(res, " UNSUPPORTED empty space\n") && !strings.Contains(res, " empty space\n") { t.Errorf("empty space missing: %q", res) } if !strings.Contains(res, "6548b156ea68a4e003e786df99eee76 potato2\n") && + !strings.Contains(res, " UNSUPPORTED potato2\n") && !strings.Contains(res, " potato2\n") { t.Errorf("potato2 missing: %q", res) }