Commit ec090bb
committed
fix(test): defer redis-5 require so DC subscriber registers before connect
node-redis eagerly creates native TracingChannels on require(), and
the DC subscriber is deferred via Promise.resolve().then(). Moving
the require inside run() after a microtick ensures the subscriber
is registered before the connect event fires.1 parent 5e6ea30 commit ec090bb
1 file changed
Lines changed: 5 additions & 2 deletions
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments