summaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-11-07 12:07:41 +0100
committerLudovic Courtès <ludo@gnu.org>2020-11-07 12:07:41 +0100
commitde6b649f8031cc2fa45099a3c41d78c2e302fdf2 (patch)
tree64f0857baed6297475161775a147ed146bb39944 /gnu/tests
parent02f5ee01c96589fc13f1e21b85b0b48100aec4e8 (diff)
tests: git-http: Avoid race condition.
* gnu/tests/version-control.scm (run-git-http-test)[test]("fcgiwrap listens"): New test.
Diffstat (limited to 'gnu/tests')
-rw-r--r--gnu/tests/version-control.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/tests/version-control.scm b/gnu/tests/version-control.scm
index 230aa9edf9..d3cf19c913 100644
--- a/gnu/tests/version-control.scm
+++ b/gnu/tests/version-control.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com>
-;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
;;;
@@ -285,6 +285,10 @@ HTTP-PORT."
'(file-exists? "/srv/git/test")
marionette))
+ (test-assert "fcgiwrap listens"
+ ;; Wait for fcgiwrap to be ready before cloning.
+ (wait-for-tcp-port 9000 marionette))
+
;; Make sure we can clone the repo from the host.
(test-equal "clone"
'#$README-contents