From a3065ded87c4038dcca6c6abac0e223964ae6acd Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 21 Apr 2026 09:21:50 +0200 Subject: [PATCH] Fix timeout for ocwrapper Signed-off-by: Christian Richter --- opencloud/cmd/opencloud/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opencloud/cmd/opencloud/main.go b/opencloud/cmd/opencloud/main.go index c80d4aca9c..4b2d7a29f9 100644 --- a/opencloud/cmd/opencloud/main.go +++ b/opencloud/cmd/opencloud/main.go @@ -16,7 +16,9 @@ func main() { // INFO: this is a hotfix, we need to replace suture and wait for nats to // gracefully shutdown using rungroups // see https://github.com/opencloud-eu/opencloud/issues/2282 - fmt.Println("Waiting for 30 seconds before exiting...") - time.Sleep(30 * time.Second) - fmt.Println("Exiting...") + if os.Getenv("TEST_SERVER_URL") == "" { + fmt.Println("Waiting for 30 seconds before exiting...") + time.Sleep(30 * time.Second) + fmt.Println("Exiting...") + } }