Skip to content

test(dbop): cover empty retrieved GTID sets - #948

Draft
ahcrm-core wants to merge 1 commit into
cybozu-go:mainfrom
ahcrm-core:test/issue-634-empty-retrieved-gtid
Draft

ahcrm-core wants to merge 1 commit into
cybozu-go:mainfrom
ahcrm-core:test/issue-634-empty-retrieved-gtid

Conversation

@ahcrm-core

Copy link
Copy Markdown

Summary

Add regression coverage for FindTopRunner when RetrievedGtidSet is empty. The test verifies that ExecutedGtidSet is used to select the most advanced runner, as described in #634.

This changes tests only; production code is unchanged.

Verification

  • go test ./pkg/dbop — package compiles successfully; the MySQL-backed suite is skipped without TEST_MYSQL=1
  • go vet ./pkg/dbop — passed
  • git diff --check — passed
  • Targeted MySQL execution with TEST_MYSQL=1 was attempted locally but could not start because Docker is unavailable in the environment; the functional result is intentionally left to repository CI

Fixes #634

Signed-off-by: Arafat K. El Haroun <320951795+ahcrm-core@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

Add test cases to gtid_test.go

1 participant