Commit 9d99aca
refactor(framework): promote relayNodes to instance field in PeerConnection
Extract relayNodes from a local variable inside setChannel() to a lazy-
initialized instance field. setChannel() now only fetches from Args when
the field is still null, so tests can pre-inject a custom list via
reflection before calling setChannel(). This restores testability of
PeerManagerTest without touching the test itself.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f0dfdea commit 9d99aca
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
0 commit comments