From 72dfdd97d8f069eb8d5c7b90757940facae526bd Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 8 Oct 2023 11:43:58 +0100 Subject: [PATCH] mockobject: fix SetUnknownSize method to obey parameter passed in --- fstest/mockobject/mockobject.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fstest/mockobject/mockobject.go b/fstest/mockobject/mockobject.go index dad56a634..89f0fab74 100644 --- a/fstest/mockobject/mockobject.go +++ b/fstest/mockobject/mockobject.go @@ -119,7 +119,7 @@ func (o *ContentMockObject) SetFs(f fs.Fs) { // SetUnknownSize makes the mock object return -1 for size if true func (o *ContentMockObject) SetUnknownSize(unknownSize bool) { - o.unknownSize = true + o.unknownSize = unknownSize } // Fs returns read only access to the Fs that this object is part of