1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00

test_all: fix crash when using -clean

This commit is contained in:
Nick Craig-Wood 2021-03-29 23:12:53 +01:00
parent fc57648b75
commit 20c5ca08fb

View File

@ -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())