Skip to content

test: migrate acquire_shard_test.go to parallelsuite.Suite#10426

Open
spkane31 wants to merge 1 commit into
mainfrom
spk/migrate-acquire-shard-test
Open

test: migrate acquire_shard_test.go to parallelsuite.Suite#10426
spkane31 wants to merge 1 commit into
mainfrom
spk/migrate-acquire-shard-test

Conversation

@spkane31
Copy link
Copy Markdown
Contributor

@spkane31 spkane31 commented May 29, 2026

What changed?

Migrate tests/acquire_shard_test.go away from deprecated testcore.FunctionalTestBase and to parallelsuite

Adds the supporting testcore plumbing the new pattern was missing:

  • WithLogger(log.Logger) — injects a custom cluster logger via NewEnv (wraps a new WithClusterLogger TestClusterOption + a Logger field on TestClusterParams, honored in setupCluster).
  • WithHistoryShardCount(int32) — sets the history shard count via NewEnv.

Why?

Part of our ongoing test flakes and migration work.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Could introduce additional flakes by parallelizing tests

@spkane31 spkane31 requested review from a team as code owners May 29, 2026 17:28
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