Skip to content

Migrate user_metadata_test.go to testcore.NewEnv#9672

Open
chaptersix wants to merge 2 commits intotemporalio:mainfrom
chaptersix:user-metadata-test-env
Open

Migrate user_metadata_test.go to testcore.NewEnv#9672
chaptersix wants to merge 2 commits intotemporalio:mainfrom
chaptersix:user-metadata-test-env

Conversation

@chaptersix
Copy link
Contributor

Summary

  • Migrate tests/user_metadata_test.go from testify/suite-based FunctionalTestBase pattern to testcore.NewEnv() subtests
  • Replace testvars.New() with s.Tv() and testcore.NewContext() with s.Context() in subtests
  • Follows the same approach as Migrate activity update tests to use TestEnv #9555

Test plan

  • make lint passes
  • go test -tags functional -run TestUserMetadata ./tests/ -count 1 -v -- all 3 subtests pass

…stcore.NewEnv

Replace suite-based test pattern with t.Run subtests using
testcore.NewEnv(t) for cluster lifecycle management. Use s.Tv()
for test variables and s.Context() for timeout contexts.
@chaptersix chaptersix marked this pull request as ready for review March 26, 2026 00:29
@chaptersix chaptersix requested review from a team as code owners March 26, 2026 00:29
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