Commit 05c7c827 authored by Michael Albinus's avatar Michael Albinus
Browse files

Adjust timer in tramp-test36-asynchronous-requests

* test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests):
Adjust timer if it takes too much time.
parent 4d3657af
......@@ -3726,12 +3726,18 @@ process sentinels. They shall not disturb each other."
0 timer-repeat
(lambda ()
(when buffers
(let ((default-directory tmp-name)
(let ((time (float-time))
(default-directory tmp-name)
(buffer-name (nth (random (length buffers)) buffers))))
"Start timer %s %s" file (current-time-string))
(funcall timer-operation file)
;; Adjust timer if it takes too much time.
(when (> (- (float-time) time) timer-repeat)
(setq timer-repeat (* 1.5 timer-repeat))
(setf (timer--repeat-delay timer) timer-repeat)
(tramp--test-message "Increase timer %s" timer-repeat))
"Stop timer %s %s" file (current-time-string)))))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment