Skip to content

tests: add tests on DropDistribution#2172

Merged
Denchick merged 2 commits intopg-sharding:masterfrom
Daewoow:tests/drop-distribution
Mar 11, 2026
Merged

tests: add tests on DropDistribution#2172
Denchick merged 2 commits intopg-sharding:masterfrom
Daewoow:tests/drop-distribution

Conversation

@Daewoow
Copy link
Contributor

@Daewoow Daewoow commented Mar 11, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 11, 2026 10:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds unit test coverage around in-memory QDB (MemQDB) distribution deletion behavior, ensuring distributions and their relation mappings are correctly removed and that other distributions are unaffected.

Changes:

  • Add a focused set of DropDistribution tests to qdb/memqdb_test.go (non-existent, empty, with relations, multiple relations, double-drop, isolation vs other dists, list visibility, reattach-after-drop).
  • Add regression tests for reference-relation prefix-name deletion behavior (issue #1306) in qdb/memqdb_test.go.
  • Remove a stale “TODO: unit tests” comment above EtcdQDB.DropDistribution.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
qdb/memqdb_test.go Adds new unit tests covering MemQDB.DropDistribution scenarios (+ regression tests for reference relations).
qdb/etcdqdb.go Removes a TODO comment above DropDistribution.

@Denchick Denchick enabled auto-merge (squash) March 11, 2026 12:53
@Denchick Denchick merged commit 2601ad4 into pg-sharding:master Mar 11, 2026
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.

3 participants