From caba22a5856ec7bbcd5b0ecb26de2484d01338cb Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Wed, 12 Jun 2024 16:39:30 +0100
Subject: [PATCH] fs/logger: make the tests deterministic

Previously this used `rclone test makefiles --seed 0` which sets a
random seed and every now and again we get this error

    Failed to open file "$WORK\\src\\moru": open $WORK\src\moru: is a directory

Because a file with the same name was created as a file in the src and
a dir in the dst.

This fixes it by using determinstic seeds each time.
---
 fs/logger/testdata/script/TestCheckVsSync.txtar | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/logger/testdata/script/TestCheckVsSync.txtar b/fs/logger/testdata/script/TestCheckVsSync.txtar
index 11d2803d1..0134a9911 100644
--- a/fs/logger/testdata/script/TestCheckVsSync.txtar
+++ b/fs/logger/testdata/script/TestCheckVsSync.txtar
@@ -1,10 +1,10 @@
 # tests whether rclone check and rclone sync output exactly the same file lists.
 
 # Filling src and dst with makefiles:
-exec rclone test makefiles $SRC --seed 0
-exec rclone test makefiles $DST --seed 1
-exec rclone test makefiles $SRC --seed 2
+exec rclone test makefiles $SRC --seed 1
 exec rclone test makefiles $DST --seed 2
+exec rclone test makefiles $SRC --seed 3
+exec rclone test makefiles $DST --seed 3
 
 # running rclone check for baseline test:
 # error is expected here: