Skip to content

Commit

Permalink
fix: scheduling zone-id flake (aws#6493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal authored Jul 11, 2024
1 parent ab2441d commit a6f27f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/suites/scheduling/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ var _ = Describe("Scheduling", Ordered, ContinueOnFailure, func() {
},
})
env.ExpectCreated(nodePool, nodeClass, pod)
node := env.EventuallyExpectNodeCount("==", 1)[0]
node := env.EventuallyExpectInitializedNodeCount("==", 1)[0]
Expect(node.Labels[v1.LabelTopologyZone]).To(Equal(subnetInfo[1].Zone))
Expect(node.Labels[v1beta1.LabelTopologyZoneID]).To(Equal(subnetInfo[1].ZoneID))
})
Expand Down Expand Up @@ -686,7 +686,7 @@ var _ = Describe("Scheduling", Ordered, ContinueOnFailure, func() {
for _, pod := range pods {
env.ExpectCreated(pod)
}
nodes := env.EventuallyExpectCreatedNodeCount("==", len(subnetInfo))
nodes := env.EventuallyExpectInitializedNodeCount("==", len(subnetInfo))
for _, node := range nodes {
expectedZone, ok := node.Labels[expectedZoneLabel]
Expect(ok).To(BeTrue())
Expand Down

0 comments on commit a6f27f3

Please sign in to comment.