[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: tests: inetd: Avoid race condition when looking for PID file.
From: |
guix-commits |
Subject: |
02/06: tests: inetd: Avoid race condition when looking for PID file. |
Date: |
Sun, 5 Nov 2023 17:26:16 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 31b39f2a336270048574ede1ed1619ff11f95a0a
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Nov 5 18:04:16 2023 +0100
tests: inetd: Avoid race condition when looking for PID file.
* gnu/tests/networking.scm (run-inetd-test): Use ‘wait-for-file’ instead
of ‘file-exists?’.
Change-Id: I3e596814485428fb81595d81c4e03519340c6576
---
gnu/tests/networking.scm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gnu/tests/networking.scm b/gnu/tests/networking.scm
index 52f818af48..b1ab43efb6 100644
--- a/gnu/tests/networking.scm
+++ b/gnu/tests/networking.scm
@@ -349,9 +349,8 @@ port 7, and a dict service on port 2628."
;; Make sure the PID file is created.
(test-assert "PID file"
- (marionette-eval
- '(file-exists? "/var/run/inetd.pid")
- marionette))
+ (wait-for-file "/var/run/inetd.pid" marionette
+ #:timeout 30))
;; Test the echo service.
(test-equal "echo response"
- branch master updated (286639c9af -> 08d94fe20e), guix-commits, 2023/11/05
- 04/06: time-machine: Make target commit check cheaper., guix-commits, 2023/11/05
- 03/06: tests: Make ‘guix time-machine’ test effective., guix-commits, 2023/11/05
- 01/06: tests: Honor system and target when lowering <system-test>., guix-commits, 2023/11/05
- 02/06: tests: inetd: Avoid race condition when looking for PID file.,
guix-commits <=
- 06/06: home: services: Add 'x11-display' service., guix-commits, 2023/11/05
- 05/06: time-machine: Warn when no command is given., guix-commits, 2023/11/05