Address Versioning3 test setup review nits

This commit is contained in:
Shivam Saraf
2026-08-18 12:04:05 -04:00
parent 651336a4c7
commit a4b2cb6ffa
3 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ func TestVersioning3OneTimeOverrideFunctionalSuite(t *testing.T) {
}
func (s *Versioning3OneTimeOverrideSuite) setupEnv(opts ...testcore.TestOption) *VersioningTestEnv {
return setupVersioning3Env(s.T(), opts...)
return newVersioning3TestEnv(s.T(), opts...)
}
// TestChildWorkflowExplicitOverrideRoutesToTargetAndClears verifies the

View File

@@ -13,7 +13,7 @@ type versioning3TestSuite[T any] interface {
Run(string, func(T)) bool
}
func setupVersioning3Env(t *testing.T, opts ...testcore.TestOption) *VersioningTestEnv {
func newVersioning3TestEnv(t *testing.T, opts ...testcore.TestOption) *VersioningTestEnv {
opts = append([]testcore.TestOption{
testcore.WithDynamicConfig(dynamicconfig.MatchingDeploymentWorkflowVersion, int(versioning3DeploymentWorkflowVersion)),
@@ -25,7 +25,7 @@ func setupVersioning3Env(t *testing.T, opts ...testcore.TestOption) *VersioningT
testcore.WithDynamicConfig(dynamicconfig.MatchingNumTaskqueueReadPartitions, 4),
testcore.WithDynamicConfig(dynamicconfig.MatchingNumTaskqueueWritePartitions, 4),
// Overriding the number of deployments that can be registered in a single namespace. Done only for this test suite
// Overriding the number of deployments that can be registered in a single namespace. Done only for this env
// since it creates a large number of unique deployments in the test suite's namespace.
testcore.WithDynamicConfig(dynamicconfig.MatchingMaxDeployments, 1000),
@@ -47,7 +47,7 @@ func runVersioning3TestWithMatchingBehavior[T versioning3TestSuite[T]](
s.Run(behavior.Name(), func(s T) {
envOpts := append([]testcore.TestOption{}, opts...)
envOpts = append(envOpts, behavior.Options()...)
env := setupVersioning3Env(s.T(), envOpts...)
env := newVersioning3TestEnv(s.T(), envOpts...)
behavior.InjectHooks(env)
testFn(env, s)
})

View File

@@ -56,7 +56,7 @@ func TestVersioning3FunctionalSuite(t *testing.T) {
}
func (s *Versioning3Suite) setupEnv(opts ...testcore.TestOption) *VersioningTestEnv {
return setupVersioning3Env(s.T(), opts...)
return newVersioning3TestEnv(s.T(), opts...)
}
func (s *Versioning3Suite) runTestWithMatchingBehavior(testFn func(*VersioningTestEnv, *Versioning3Suite), opts ...testcore.TestOption) {