Skip to content

Refactor transport tests to inspect outgoing RPCs - #89

Merged
apstndb merged 1 commit into
mainfrom
test/interceptor-transport-coverage
Sep 8, 2026
Merged

apstndb merged 1 commit into
mainfrom
test/interceptor-transport-coverage

Conversation

@apstndb

@apstndb apstndb commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Transport tests previously repeated Spanner fake servers to verify outgoing options and plan/stat output combinations. Inspect role, priority, and query mode through shared client interceptors instead, using the emulator for session and transaction setup.

Move arbitrary plan/stat combinations to unit tests and retain two fake-server smoke cases for the eager and lazy SDK-to-output paths. Add an internal client-option injection point without changing CLI behavior. The migrated request tests now require Docker, like the existing emulator integration suite.

Validation: Go 1.25.13 full test suite with Colima, build, and golangci-lint passed. Interceptor tests cover rejection before sending and preserving the server status after a send returns EOF.

@apstndb
apstndb merged commit c3d14fe into main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant