File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 616
616
(testing " :out :stream"
617
617
(let [proc (ssh s {:cmd " ls" :out :stream :pty true })]
618
618
(is (> (count (slurp (:out-stream proc))) 1 ) " :out-stream" )
619
+ (while (connected-channel? (:channel proc))
620
+ (Thread/sleep 100 ))
619
621
(is (not (connected-channel? (:channel proc)))
620
622
" :channel not connected" )
621
623
(is (zero? (exit-status (:channel proc)))
628
630
(testing " :out stream"
629
631
(let [proc (ssh s {:in " ls" :out :stream })]
630
632
(is (> (count (slurp (:out-stream proc))) 1 ) " :out-stream" )
633
+ (while (connected-channel? (:channel proc))
634
+ (Thread/sleep 100 ))
631
635
(is (not (connected-channel? (:channel proc)))
632
636
" :channel not connected" )
633
637
(is (zero? (exit-status (:channel proc)))
You can’t perform that action at this time.
0 commit comments