summaryrefslogtreecommitdiff
path: root/test/lisp/jsonrpc-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/jsonrpc-tests.el')
-rw-r--r--test/lisp/jsonrpc-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/jsonrpc-tests.el b/test/lisp/jsonrpc-tests.el
index 16986eb46f6..1a84c30e33d 100644
--- a/test/lisp/jsonrpc-tests.el
+++ b/test/lisp/jsonrpc-tests.el
@@ -48,7 +48,11 @@
(setq listen-server
(make-network-process
:name "Emacs RPC server" :server t :host "localhost"
- :service 44444
+ :service (if (version<= emacs-version "26.1")
+ 44444
+ ;; 26.1 can automatically find ports if
+ ;; one passes 0 here.
+ 0)
:log (lambda (listen-server client _message)
(push
(make-instance