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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user