Skip to content

Commit 9dd21e8

Browse files
committed
docs: fix review feedback - testdb naming, broken link, RPC consistency
- Replace 'testhelpers' with 'testdb' in overview, remove stale 'pre-configured repository' bullet - Fix broken See Also link to actual test file path - Align TriggerSaga → ExecuteSaga in event-router Mermaid diagram
1 parent 46635c4 commit 9dd21e8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/guides/testcontainers-usage.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ The examples below use position-keeping but the pattern applies to all services.
88

99
## Overview
1010

11-
The testhelpers package implements a complete testing environment with:
11+
The `testdb` package implements a complete testing environment with:
1212

1313
- **Isolated CockroachDB containers** - Each test gets its own database
1414
- **Automatic schema setup** - Service schema loaded automatically
1515
- **GORM database handle** - Configured and ready for repository use
16-
- **Repository instances** - Pre-configured repository for immediate use
1716
- **Proper cleanup** - Automatic container termination and resource management
1817

1918
## Quick Start
@@ -293,4 +292,4 @@ func TestNewWay(t *testing.T) {
293292
- [repository_test.go][repo-test] - Example integration tests
294293
- [testcontainers-go docs](https://golang.testcontainers.org/) - Official documentation
295294

296-
[repo-test]: ../../services/position-keeping/repository/repository_test.go
295+
[repo-test]: ../../services/position-keeping/adapters/persistence/postgres_repository_test.go

services/event-router/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ flowchart LR
9494
Consumer --> Router
9595
Router --> SH
9696
Router --> UH
97-
SH -->|TriggerSaga| CP
97+
SH -->|ExecuteSaga| CP
9898
UH -->|RecordMeasurement| PK
9999
100100
classDef kafka fill:#50c878,stroke:#2d7a4a,color:#fff

0 commit comments

Comments
 (0)