mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
This adds a context.Context parameter to NewFs and related calls. This is necessary as part of reading config from the context - backends need to be able to read the global config.
This commit is contained in:
@@ -819,7 +819,7 @@ func TestCopyFileCompareDest(t *testing.T) {
|
||||
defer func() {
|
||||
fs.Config.CompareDest = ""
|
||||
}()
|
||||
fdst, err := fs.NewFs(r.FremoteName + "/dst")
|
||||
fdst, err := fs.NewFs(context.Background(), r.FremoteName+"/dst")
|
||||
require.NoError(t, err)
|
||||
|
||||
// check empty dest, empty compare
|
||||
@@ -904,7 +904,7 @@ func TestCopyFileCopyDest(t *testing.T) {
|
||||
fs.Config.CopyDest = ""
|
||||
}()
|
||||
|
||||
fdst, err := fs.NewFs(r.FremoteName + "/dst")
|
||||
fdst, err := fs.NewFs(context.Background(), r.FremoteName+"/dst")
|
||||
require.NoError(t, err)
|
||||
|
||||
// check empty dest, empty copy
|
||||
|
||||
Reference in New Issue
Block a user