Skip to content

Commit 5ff6d01

Browse files
committed
Fix byte compiler warning on impostman-test.el
This fixes this warning: impostman-test.el:671:9:Warning: assignment to free variable ‘impostman-test-output-test-alist’
1 parent 85d867d commit 5ff6d01

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/impostman-test.el

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,13 @@
668668

669669
(ert-deftest impostman-test-import-file ()
670670
"Test import of a file with a Postman collection."
671-
(setq impostman-test-output-test-alist
672-
'((init . ignore)
673-
(header . impostman-test-output-test-header)
674-
(item . impostman-test-output-test-item)
675-
(request . impostman-test-output-test-request)
676-
(footer . impostman-test-output-test-footer)
677-
(end . ignore)))
671+
(defvar impostman-test-output-test-alist
672+
'((init . ignore)
673+
(header . impostman-test-output-test-header)
674+
(item . impostman-test-output-test-item)
675+
(request . impostman-test-output-test-request)
676+
(footer . impostman-test-output-test-footer)
677+
(end . ignore)))
678678
(let* ((verb-output
679679
(impostman-test--get-file-contents "tests/verb.org"))
680680
(restclient-output
@@ -707,13 +707,13 @@
707707

708708
(ert-deftest impostman-test-import-string ()
709709
"Test import of a string with a Postman collection."
710-
(setq impostman-test-output-test-alist
711-
'((init . ignore)
712-
(header . impostman-test-output-test-header)
713-
(item . impostman-test-output-test-item)
714-
(request . impostman-test-output-test-request)
715-
(footer . impostman-test-output-test-footer)
716-
(end . ignore)))
710+
(defvar impostman-test-output-test-alist
711+
'((init . ignore)
712+
(header . impostman-test-output-test-header)
713+
(item . impostman-test-output-test-item)
714+
(request . impostman-test-output-test-request)
715+
(footer . impostman-test-output-test-footer)
716+
(end . ignore)))
717717
(let* ((collection
718718
(impostman-test--get-file-contents "tests/collection.json"))
719719
(verb-output

0 commit comments

Comments
 (0)