diff --git a/pkg/controller.v1beta1/experiment/manifest/generator_test.go b/pkg/controller.v1beta1/experiment/manifest/generator_test.go index a2b9f295f0e..c4ee3abde3f 100644 --- a/pkg/controller.v1beta1/experiment/manifest/generator_test.go +++ b/pkg/controller.v1beta1/experiment/manifest/generator_test.go @@ -312,7 +312,15 @@ spec: }, } - for name, tc := range cases { + testCaseNames := []string{ + "Run with valid parameters", + "Invalid ConfigMap name", + "Invalid template path in ConfigMap name", + "Invalid trial spec in ConfigMap", + } + + for _, name := range testCaseNames { + tc := cases[name] t.Run(name, func(t *testing.T) { got, err := p.GetRunSpecWithHyperParameters(tc.Instance, "trial-name", "trial-namespace", tc.ParameterAssignments) if diff := cmp.Diff(tc.wantError, err, cmpopts.EquateErrors()); len(diff) != 0 {