1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

test_all: fix detection of running servers

Before this change stopping servers was unreliable, expecially the non
docker based ones. This caused timeouts and connection errors in the
tests.
This commit is contained in:
Nick Craig-Wood
2025-10-30 17:33:02 +00:00
parent 05d54a95b8
commit d34ba258b0

View File

@@ -177,7 +177,7 @@ func Start(remoteName string) (fn func(), err error) {
// been started already but not by us and stop it if so
const maxTries = 10
for i := 1; i <= maxTries; i++ {
if os.Getenv(envKey(name, "type")) == "" && !isRunning(name) {
if !isRunning(name) {
fs.Logf(name, "Stopped server")
break
}