Commit 5dc641e
committed
CLJS-2780: Async tests prematurely terminate in Node
While the current implementation of -tear-down in the Node REPL allows
any pending (Node termination delaying) processing to finish, it
doesn't allow for any further communication between the REPL and the
Node process: It immediately destroys the Node-side socket while also
discarding any REPL-side communication structures.
This patch moves the code that discards REPL-side communication
structures to occur after awaiting Node process termination so that any
messages that are sent can be displayed. It also replaces the Node-side
destroy call to an unref: This allows any lingering communication to
occur, without causing the socket to keep the Node process alive.1 parent 6048bc9 commit 5dc641e
File tree
3 files changed
+15
-6
lines changed- src
- main/clojure/cljs/repl
- test/cljs_cli/cljs_cli
3 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
250 | 246 | | |
251 | 247 | | |
252 | 248 | | |
253 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
0 commit comments