From 3f0a4b7829677dd391862a0668a1779674851c48 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Thu, 9 May 2019 19:01:00 -0500 Subject: [PATCH] Make `jupyter-write-connection-file` test more reliable --- test/jupyter-test.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/jupyter-test.el b/test/jupyter-test.el index 6dbb406..9773afe 100644 --- a/test/jupyter-test.el +++ b/test/jupyter-test.el @@ -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)