Subject: [bug#77578] [PATCH 2/2] tests: docker-system: Add network up test.

From: Oleg Pykhalov <[email-masked]>
Date: Fri, 6 Jun 2025 23:15:39 +0300

Addresses intermittent Docker test failures caused by timing issues where
container-related checks ran before the networking service was fully
initialized. A new "network is up" assertion has been added to explicitly
start and verify the 'networking' service using `marionette-eval`.

* gnu/tests/docker.scm (%test-docker-system): Add "network is up" test.

Change-Id: I0c761ae2ce2e7b398c8f35ea1faf50257193ccc5
Signed-off-by: Oleg Pykhalov <[email-masked]>
---
 gnu/tests/docker.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/tests/docker.scm b/gnu/tests/docker.scm
index 84d604f8d3..c8796e42bb 100644
--- a/gnu/tests/docker.scm
+++ b/gnu/tests/docker.scm
@@ -251,6 +251,13 @@ (define marionette
           (test-runner-current (system-test-runner #$output))
           (test-begin "docker")
 
+          (test-assert "network is up"
+            (marionette-eval
+             '(begin
+                (use-modules (gnu services herd))
+                (start-service 'networking))
+             marionette))
+
           (test-assert "containerd service running"
             (marionette-eval
              '(begin
-- 
2.41.0