                                 :output-stream fake-out}))
           (should-contain (with-out-str (clojure.repl/doc map))
                           (str fake-out)))))
-
     )
 
   (describe "completion"
 
     (it "tab-completes clojure.core fns"
-        (.flush System/out)
       (let [fake-out (java.io.ByteArrayOutputStream.)]
         (binding [*out* (java.io.PrintWriter. fake-out)]
           (with-redefs [exit/exit #()]

            in (io/input-stream remote-url)]
        (io/copy in out)))))

(describe "nrepl integration"

  (around [f]
    (ensure-test-jar clojure-151)


    (it "allows using doc"
      (let [fake-out (java.io.ByteArrayOutputStream.)]
        (binding [*out* (java.io.PrintWriter. fake-out)]
          (with-redefs [exit/exit #()]
            (main/launch-nrepl {:attach (str *server-port*)
