From 20c5ca08fbf4222178f01ccd47dca8d04c237be8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 29 Mar 2021 23:12:53 +0100 Subject: [PATCH] test_all: fix crash when using -clean --- fstest/test_all/test_all.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fstest/test_all/test_all.go b/fstest/test_all/test_all.go index 22c3032f4..a6703b504 100644 --- a/fstest/test_all/test_all.go +++ b/fstest/test_all/test_all.go @@ -12,6 +12,7 @@ Make TesTrun have a []string of flags to try - that then makes it generic */ import ( + "context" "flag" "log" "math/rand" @@ -22,6 +23,7 @@ import ( "time" _ "github.com/rclone/rclone/backend/all" // import all fs + "github.com/rclone/rclone/fs/config/configfile" "github.com/rclone/rclone/lib/pacer" ) @@ -70,6 +72,7 @@ func main() { log.Println("test_all should be run from the root of the rclone source code") log.Fatal(err) } + configfile.LoadConfig(context.Background()) // Seed the random number generator rand.Seed(time.Now().UTC().UnixNano())