Skip to content

Commit

Permalink
Remove unncessary test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Dec 15, 2023
1 parent 98fed71 commit 335a517
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions internal/mode/static/state/change_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1412,21 +1412,13 @@ var _ = Describe("ChangeProcessor", func() {
})
When("a gateway changes its listener's labels", func() {
It("triggers an update when a namespace that matches the new labels is created", func() {
processor.CaptureUpsertChange(ns)
changed, _ := processor.Process()
Expect(changed).To(BeTrue())

processor.CaptureUpsertChange(nsDifferentLabels)
changed, _ = processor.Process()
Expect(changed).To(BeFalse())

gwChangedLabel := gw.DeepCopy()
gwChangedLabel.Spec.Listeners[0].AllowedRoutes.Namespaces.Selector.MatchLabels = map[string]string{
"oranges": "bananas",
}
gwChangedLabel.Generation++
processor.CaptureUpsertChange(gwChangedLabel)
changed, _ = processor.Process()
changed, _ := processor.Process()
Expect(changed).To(BeTrue())

// After changing the gateway's labels and generation, the processor should be marked to update
Expand Down

0 comments on commit 335a517

Please sign in to comment.