Permalink
Browse files

eliminate more race conditions in tests

  • Loading branch information...
1 parent eac5445 commit 363f4c8b2203e00b5c3c62e6b997bc7ae35eba99 @cemerick cemerick committed Feb 26, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/test/clojure/clojure/tools/nrepl/helpers_test.clj
@@ -27,11 +27,11 @@
#_(is (= [{:file "NO_SOURCE_PATH" :line 4}]
(repl-values session "(-> #'function meta (select-keys [:file :line]))")))
- (repl-eval session
- (helpers/load-file-command
- "\n\n\n\n\n\n\n\n\n(defn dfunction [])"
- "path/from/source/root.clj"
- "root.clj"))
+ (repl-values session
+ (helpers/load-file-command
+ "\n\n\n\n\n\n\n\n\n(defn dfunction [])"
+ "path/from/source/root.clj"
+ "root.clj"))
(is (= [{:file "path/from/source/root.clj" :line 10}]
(repl-values session
@@ -41,10 +41,10 @@
(select-keys [:file :line])))))))
(def-repl-test load-file-with-debug-info
- (repl-eval session
- (helpers/load-file-command
- (File. project-base-dir "load-file-test/clojure/tools/nrepl/load_file_sample.clj")
- (File. project-base-dir "load-file-test")))
+ (repl-values session
+ (helpers/load-file-command
+ (File. project-base-dir "load-file-test/clojure/tools/nrepl/load_file_sample.clj")
+ (File. project-base-dir "load-file-test")))
(is (= [{:file "clojure/tools/nrepl/load_file_sample.clj" :line 5}]
(repl-values session
(nrepl/code

0 comments on commit 363f4c8

Please sign in to comment.