Skip to content

Fix expected timestamp values in integration test - #235

Merged
toga4 merged 1 commit into
mainfrom
fix-emulator-timestamp-nanoseconds-test
Sep 9, 2026
Merged

Fix expected timestamp values in integration test#235
toga4 merged 1 commit into
mainfrom
fix-emulator-timestamp-nanoseconds-test

Conversation

@toga4

@toga4 toga4 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

TestSubscriber_DataChangeRecord fails because the Cloud Spanner emulator
no longer truncates the nanosecond part of TIMESTAMP values in change
stream records. The test inserts a timestamp with nanosecond precision
(2023-12-31T23:59:59.999999999Z), but the expected values were truncated
to 2023-12-31T23:59:59Z, matching an older emulator behavior.

Changes

  • Update the expected Timestamp / TimestampArray values in
    integration_test.go to keep the nanosecond precision.
  • Update the stale comment describing the emulator's truncation behavior.

Testing

  • go test ./...

🤖 Generated with Claude Code

https://claude.ai/code/session_018vkB4oSYPTcopeMSJ9M4hZ

The Cloud Spanner emulator no longer truncates the nanosecond part of
TIMESTAMP values in change stream records, so the test's expected
values (truncated to seconds) no longer match the actual output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018vkB4oSYPTcopeMSJ9M4hZ
@toga4
toga4 marked this pull request as ready for review September 9, 2026 00:23
@toga4
toga4 enabled auto-merge September 9, 2026 00:23
@toga4
toga4 merged commit 8b87e7c into main Sep 9, 2026
4 checks passed
@toga4
toga4 deleted the fix-emulator-timestamp-nanoseconds-test branch September 9, 2026 00:24
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