summaryrefslogtreecommitdiff
path: root/tests/common.scm
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-05-02 04:44:53 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-05-02 04:44:53 +0400
commit3b680fa9d75e837d9deb9a72c80edb417c52b07c (patch)
treeb458b91bbc468eb16aab7ccafda29aeee8d597ea /tests/common.scm
parenttests/common.scm (get-unused-port): Protect with a mutex (diff)
downloadguile-ssh-3b680fa9d75e837d9deb9a72c80edb417c52b07c.tar.gz
tests/common.scm (make-server-for-test): Pick an unused port
* tests/common.scm (make-server-for-test): Use pick an unused port.
Diffstat (limited to 'tests/common.scm')
-rw-r--r--tests/common.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.scm b/tests/common.scm
index 4a7b6ba..5cf95e2 100644
--- a/tests/common.scm
+++ b/tests/common.scm
@@ -108,7 +108,7 @@
;; FIXME: This hack is aimed to give every server its own unique
;; port to listen to. Clients will pick up new port number
;; automatically through global `port' symbol as well.
- (set! *port* (1+ *port*))
+ (set! *port* (get-unused-port))
(make-server
#:bindaddr %addr