diff options
| author | Lars Ingebrigtsen | 2022-07-11 13:19:48 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-07-11 13:19:48 +0200 |
| commit | 061de95d5951642d19cc9445ddbe063e1e2019bb (patch) | |
| tree | ddfe57eb3530b154611f1a9d67955a4c63e7085a /test/src | |
| parent | 215a700751f88bba18989e340181361a484d5b3a (diff) | |
| download | emacs-061de95d5951642d19cc9445ddbe063e1e2019bb.tar.gz emacs-061de95d5951642d19cc9445ddbe063e1e2019bb.zip | |
Don't call home from test/src/process-tests.el
* test/src/process-tests.el (process-num-processors): Move from
here...
* test/manual/process-callout-tests.el: ... to here (bug#55858).
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/process-tests.el | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el index 824c6da1191..f1ed7e18d5b 100644 --- a/test/src/process-tests.el +++ b/test/src/process-tests.el | |||
| @@ -909,35 +909,6 @@ Return nil if FILENAME doesn't exist." | |||
| 909 | ;; ...and the change description should be "interrupt". | 909 | ;; ...and the change description should be "interrupt". |
| 910 | (should (equal '("interrupt\n") events))))) | 910 | (should (equal '("interrupt\n") events))))) |
| 911 | 911 | ||
| 912 | (ert-deftest process-async-https-with-delay () | ||
| 913 | "Bug#49449: asynchronous TLS connection with delayed completion." | ||
| 914 | (skip-unless (and internet-is-working (gnutls-available-p))) | ||
| 915 | (let* ((status nil) | ||
| 916 | (buf (url-http | ||
| 917 | #s(url "https" nil nil "elpa.gnu.org" nil | ||
| 918 | "/packages/archive-contents" nil nil t silent t t) | ||
| 919 | (lambda (s) (setq status s)) | ||
| 920 | '(nil) nil 'tls))) | ||
| 921 | (unwind-protect | ||
| 922 | (progn | ||
| 923 | ;; Busy-wait for 1 s to allow for the TCP connection to complete. | ||
| 924 | (let ((delay 1.0) | ||
| 925 | (t0 (float-time))) | ||
| 926 | (while (< (float-time) (+ t0 delay)))) | ||
| 927 | ;; Wait for the entire operation to finish. | ||
| 928 | (let ((limit 4.0) | ||
| 929 | (t0 (float-time))) | ||
| 930 | (while (and (null status) | ||
| 931 | (< (float-time) (+ t0 limit))) | ||
| 932 | (sit-for 0.1))) | ||
| 933 | (should status) | ||
| 934 | (should-not (plist-get status ':error)) | ||
| 935 | (should buf) | ||
| 936 | (should (> (buffer-size buf) 0)) | ||
| 937 | ) | ||
| 938 | (when buf | ||
| 939 | (kill-buffer buf))))) | ||
| 940 | |||
| 941 | (ert-deftest process-num-processors () | 912 | (ert-deftest process-num-processors () |
| 942 | "Sanity checks for num-processors." | 913 | "Sanity checks for num-processors." |
| 943 | (should (equal (num-processors) (num-processors))) | 914 | (should (equal (num-processors) (num-processors))) |