Skip to content

Commit 4e39dae

Browse files
committed
fix: strict type for enum
1 parent 7b4d6f5 commit 4e39dae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/tests/test_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (r *TestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
8181

8282
data, err := json.Marshal(testsv3.ExecutionRequest{
8383
RunningContext: &testsv3.RunningContext{
84-
Type_: string(testsv3.RunningContextTypeScheduler),
84+
Type_: testsv3.RunningContextTypeScheduler,
8585
Context: test.Spec.Schedule,
8686
},
8787
})

controllers/testsuite/testsuite_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (r *TestSuiteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
8181

8282
data, err := json.Marshal(testsuitev2.TestSuiteExecutionRequest{
8383
RunningContext: &testsuitev2.RunningContext{
84-
Type_: string(testsuitev2.RunningContextTypeScheduler),
84+
Type_: testsuitev2.RunningContextTypeScheduler,
8585
Context: testSuite.Spec.Schedule,
8686
},
8787
})

0 commit comments

Comments
 (0)