Skip to content

Commit f2a6db0

Browse files
committed
Fix UT
1 parent 3bbf2b6 commit f2a6db0

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

slice/internal/controller/workload_controller_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,20 +2001,6 @@ func TestWorkloadReconciler(t *testing.T) {
20012001
`Slices are in states: 1 ACTIVE, 1 ACTIVE_DEGRADED. Errors: Hardware failure (degraded)`, ptr.To(int32(10)))).
20022002
Obj(),
20032003
},
2004-
wantSlices: []slice.Slice{
2005-
*baseSlice1Wrapper.Clone().
2006-
Annotation(core.OwnerPodSetNameAnnotation, "ps1").
2007-
Condition(metav1.Condition{
2008-
Type: slice.SliceStateConditionType,
2009-
Status: metav1.ConditionTrue,
2010-
Reason: string(core.MMIGHealthStatusActiveDegraded),
2011-
Message: "Hardware failure",
2012-
}).Obj(),
2013-
*baseSlice2Wrapper.Clone().
2014-
Active().
2015-
Annotation(core.OwnerPodSetNameAnnotation, "ps2").
2016-
Obj(),
2017-
},
20182004
wantJobSets: []jobset.JobSet{*baseJobSetWrapper.Clone().Obj()},
20192005
wantEvents: []utiltesting.EventRecord{
20202006
buildEventRecord(corev1.NamespaceDefault, corev1.EventTypeNormal, AdmissionCheckUpdatedEventType,
@@ -2064,12 +2050,10 @@ func TestWorkloadReconciler(t *testing.T) {
20642050
[]kueue.PodSetUpdate{
20652051
{
20662052
Name: "ps1",
2067-
Labels: map[string]string{core.PodWebhookLabelKey: "true"},
20682053
NodeSelector: map[string]string{"cloud.google.com/gke-tpu-topology": "4x4x4"},
20692054
},
20702055
{
20712056
Name: "ps2",
2072-
Labels: map[string]string{core.PodWebhookLabelKey: "true"},
20732057
NodeSelector: map[string]string{"cloud.google.com/gke-tpu-topology": "4x4x4"},
20742058
},
20752059
})).

0 commit comments

Comments
 (0)