Add integration tests for NATSEventBus
All checks were successful
CI / build (push) Successful in 16s

Add comprehensive integration tests that verify NATSEventBus behavior
with a real NATS server. Tests cover:

- Cross-node event delivery (multiple NATSEventBus instances)
- Namespace isolation with single and multiple NATS connections
- High-throughput scenarios (1000 events)
- Event ordering within namespace
- No cross-namespace leakage verification
- Concurrent publish/subscribe operations
- Multiple subscribers to same namespace
- Event metadata preservation across NATS
- Large event payload handling (100KB)
- Subscribe/unsubscribe lifecycle
- Reconnection behavior
- Graceful degradation under load
- Benchmarks for publish and publish-receive

Tests require a running NATS server and are tagged with +build integration.
Run with: go test -tags=integration -v ./...

Closes #18

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit was merged in pull request #50.
This commit is contained in:
2026-01-10 19:24:10 +01:00
parent adead7e980
commit 9e238c5e70

File diff suppressed because it is too large Load Diff