From 885a5430234e8f78e9a7e4e26d0d2ceeb4adb7c1 Mon Sep 17 00:00:00 2001 From: nielash Date: Tue, 23 Jan 2024 16:55:56 -0500 Subject: [PATCH] operations: use --download for TestApplyTransforms #7591 This makes it possible to run the test even on remotes without MD5 support. --- fs/operations/check_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/operations/check_test.go b/fs/operations/check_test.go index 2f4213ad4..1ed2573cf 100644 --- a/fs/operations/check_test.go +++ b/fs/operations/check_test.go @@ -563,9 +563,6 @@ func TestApplyTransforms(t *testing.T) { testScenario := func(checkfileName, remotefileName, scenario string) { r := fstest.NewRunIndividual(t) - if !r.Flocal.Hashes().Contains(hashType) || !r.Fremote.Hashes().Contains(hashType) { - t.Skipf("Fs lacks %s, skipping", hashType) - } ctx := context.Background() ci := fs.GetConfig(ctx) opt := operations.CheckOpt{} @@ -580,7 +577,7 @@ func TestApplyTransforms(t *testing.T) { ci.NoUnicodeNormalization = true ci.IgnoreCaseSync = false accounting.GlobalStats().ResetCounters() - err := operations.CheckSum(ctx, r.Fremote, r.Flocal, "test.sum", hashType, &opt, false) + err := operations.CheckSum(ctx, r.Fremote, r.Flocal, "test.sum", hashType, &opt, true) assert.Error(t, err, "no expected error for %s %v %v", testname, checkfileName, remotefileName) testname = scenario + " (with normalization)" @@ -588,7 +585,7 @@ func TestApplyTransforms(t *testing.T) { ci.NoUnicodeNormalization = false ci.IgnoreCaseSync = true accounting.GlobalStats().ResetCounters() - err = operations.CheckSum(ctx, r.Fremote, r.Flocal, "test.sum", hashType, &opt, false) + err = operations.CheckSum(ctx, r.Fremote, r.Flocal, "test.sum", hashType, &opt, true) assert.NoError(t, err, "unexpected error for %s %v %v", testname, checkfileName, remotefileName) }