Permalink
Browse files

Use epc:sync rather than deferred:sync! in tests

  • Loading branch information...
1 parent c8b4dd4 commit 1177b907bb24bbeb49d224e52aafeea36a778699 @tkf committed Dec 11, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 test-jedi.el
View
@@ -31,12 +31,15 @@
(require 'jedi)
+(defun jedi-testing:sync (d)
+ (epc:sync (jedi:get-epc) d))
+
(ert-deftest jedi:version ()
"Check if `jedi:version' can be parsed by `version-to-list'."
(version-to-list jedi:version))
(ert-deftest jedi:complete-request ()
- (deferred:sync!
+ (jedi-testing:sync
(with-temp-buffer
(erase-buffer)
(insert "import json" "\n" "json.l")
@@ -46,7 +49,7 @@
(ert-deftest jedi:get-in-function-call-request ()
(destructuring-bind (&key params index call_name)
- (deferred:sync!
+ (jedi-testing:sync
(with-temp-buffer
(erase-buffer)
(insert "isinstance(obj,")
@@ -57,7 +60,7 @@
(ert-deftest jedi:goto-request ()
(let ((reply
- (deferred:sync!
+ (jedi-testing:sync
(with-temp-buffer
(erase-buffer)
(insert "import json" "\n" "json.load")
@@ -70,7 +73,7 @@
(ert-deftest jedi:get-definition-request ()
(let ((reply
- (deferred:sync!
+ (jedi-testing:sync
(with-temp-buffer
(erase-buffer)
(insert "import json" "\n" "json.load")

0 comments on commit 1177b90

Please sign in to comment.