+2011-06-04 Andreas Schwab <schwab@linux-m68k.org>
+
+ * url-future.el (url-future-test): Fix scope of `saver'.
+
2011-06-01 Glenn Morris <rgm@gnu.org>
* url-queue.el (url-queue-parallel-processes, url-queue-timeout):
(url-future-finish url-future 'cancel)))
(ert-deftest url-future-test ()
- (let* ((text "running future")
+ (let* (saver
+ (text "running future")
(good (make-url-future :value (lambda () (format text))
:callback (lambda (f) (set 'saver f))))
(bad (make-url-future :value (lambda () (/ 1 0))
(tocancel (make-url-future :value (lambda () (/ 1 0))
:callback (lambda (f) (set 'saver f))
:errorback (lambda (&rest d)
- (set 'saver d))))
- saver)
+ (set 'saver d)))))
(should (equal good (url-future-call good)))
(should (equal good saver))
(should (equal text (url-future-value good)))