Skip to content

Commit ad69888

Browse files
scotwellsclaude
andcommitted
fix(lint): use rdTestWorkloadName constant for repeated workload name
Replace literal "test-workload" occurrences with the existing rdTestWorkloadName constant so goconst no longer flags them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 75a1521 commit ad69888

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/controller/workload_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
func makeWorkload(generation int64) *computev1alpha.Workload {
2222
return &computev1alpha.Workload{
2323
ObjectMeta: metav1.ObjectMeta{
24-
Name: "test-workload",
24+
Name: rdTestWorkloadName,
2525
Namespace: testDefaultNamespace,
2626
Generation: generation,
2727
},

internal/controller/workloaddeployment_federator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func TestWorkloadDeploymentFederator_Finalization(t *testing.T) {
476476
Spec: computev1alpha.WorkloadDeploymentSpec{
477477
CityCode: testCityCodeLAX,
478478
PlacementName: testDefaultPlacement,
479-
WorkloadRef: computev1alpha.WorkloadReference{Name: "test-workload"},
479+
WorkloadRef: computev1alpha.WorkloadReference{Name: rdTestWorkloadName},
480480
ScaleSettings: computev1alpha.HorizontalScaleSettings{MinReplicas: 1},
481481
},
482482
}

0 commit comments

Comments
 (0)