Commit ff522b7
committed
fix: stop router before NATS in integration test cleanup
This prevents the subscriber's ClosedCB from firing log.Fatal when
NATS is stopped first, which was causing the test process to exit
prematurely and leading to port binding conflicts in parallel test
runs.
The cleanup order is now:
1. Terminate gorouter session
2. Stop NATS server
3. Clean up test files
This matches the fix from upstream PR #555 (commit b2bf830) which
resolved similar issues in router/router_test.go.1 parent c9401c6 commit ff522b7
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments