Make jupyter-write-connection-file test more reliable

This commit is contained in:
Nathaniel Nicandro 2019-05-09 19:01:00 -05:00
parent 7945b6f444
commit 3f0a4b7829

View file

@ -656,6 +656,9 @@
(should-not (equal kill-emacs-hook hook))
(setq fun (car (cl-set-difference kill-emacs-hook hook)))
(should-not (memq fun hook)))
(let ((table (make-hash-table)))
(dotimes (_ gc-cons-threshold)
(puthash (random) t table)))
(garbage-collect)
(garbage-collect)
(garbage-collect)