Commit ed86ac1
committed
fix(connection-manager): address review feedback on per-address timeout
- Fix JSDoc @see URL to point to public ConnectionManagerInit interface
instead of internal ConnectionManagerConfig
- Replace timing-based assertion in the sequential-hang test with a
signal-based one: listen for abort on each hung dial's options.signal
and count aborts. Verifies the per-address AbortSignal was actually
fired three times rather than measuring wall-clock elapsed time, which
is flaky on loaded CI runners.1 parent cc1c321 commit ed86ac1
2 files changed
Lines changed: 5 additions & 6 deletions
File tree
- packages/libp2p
- src/connection-manager
- test/connection-manager
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
| |||
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
| 494 | + | |
493 | 495 | | |
494 | 496 | | |
495 | 497 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
504 | | - | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
510 | 511 | | |
511 | | - | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | | - | |
523 | | - | |
| 521 | + | |
| 522 | + | |
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
| |||
0 commit comments