File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 70
70
(testing " when JSON serialisation fails"
71
71
(let [output-stream (java.io.ByteArrayOutputStream. )
72
72
output-ch (io-chan/output-stream->output-chan output-stream)]
73
- (async/>!! output-ch {:not-serializable output-stream })
74
- (Thread/sleep 200 )
73
+ (async/>!! output-ch {:not-serializable ( Object. ) })
74
+ (Thread/sleep 50 )
75
75
(is (false ? (async/put! output-ch {:test " should be closed" })))))
76
76
(testing " when an I/O exception occurs"
77
77
(let [output-stream (error-output-stream )
78
78
output-ch (io-chan/output-stream->output-chan output-stream)]
79
79
(async/>!! output-ch {:test " ok" })
80
- (Thread/sleep 200 )
80
+ (Thread/sleep 50 )
81
81
(is (false ? (async/put! output-ch {:test " should be closed" }))))))
82
82
83
83
(deftest input-stream-should-kebab-case-input
You can’t perform that action at this time.
0 commit comments