Commit Graph

2 Commits

Author SHA1 Message Date
9407b09c1b Fix CI workflow for integration tests
Some checks failed
CI / integration (pull_request) Failing after 7s
CI / build (pull_request) Successful in 19s
- Remove unused services block that caused CI failure
  (Gitea runner doesn't support --name/-p in options field)
- Update build tag to modern //go:build syntax (Go 1.17+)

The workflow already manually installs and starts NATS with JetStream,
making the services block redundant.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:53:05 +01:00
bf814b23f5 Add integration tests for JetStreamEventStore
Some checks failed
CI / integration (pull_request) Failing after 3s
CI / build (pull_request) Successful in 37s
This commit adds comprehensive integration tests for JetStreamEventStore
that validate production event store behavior against a real NATS server.

Tests include:
- Stream creation and configuration
- SaveEvent persistence to JetStream
- GetEvents retrieval in correct order
- GetLatestVersion functionality
- Snapshot save/load operations
- Namespace isolation between stores
- Concurrent writes and version conflict handling
- Persistence across connection disconnects
- Multiple store instance coordination

Also updates CI workflow to run integration tests with a NATS server
enabled with JetStream.

Closes #10

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:49:14 +01:00