From 07e4b9bb7fa4f3e531bba02d8e7c9c1a6d60b340 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 25 Feb 2020 13:28:26 +0000 Subject: [PATCH] operations: fix multithread copy test to use the correct modify window In bde0334bd8e2c16d "operations: fix setting the timestamp on Windows for multithread copy" the test for multithread copy failed to take into account the modify window of the remote under test. --- fs/operations/multithread_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations/multithread_test.go b/fs/operations/multithread_test.go index 86ca3c1b6..feb45fa6a 100644 --- a/fs/operations/multithread_test.go +++ b/fs/operations/multithread_test.go @@ -138,7 +138,7 @@ func TestMultithreadCopy(t *testing.T) { assert.Equal(t, src.Size(), dst.Size()) assert.Equal(t, "file1", dst.Remote()) - fstest.CheckItems(t, r.Flocal, file1) + fstest.CheckListingWithPrecision(t, r.Flocal, []fstest.Item{file1}, nil, fs.GetModifyWindow(r.Flocal, r.Fremote)) require.NoError(t, dst.Remove(context.Background())) }) }