From 335a51726c8ac6bfa72b051c92e8298796c27f42 Mon Sep 17 00:00:00 2001 From: Benjamin Jee Date: Fri, 15 Dec 2023 10:12:26 -0800 Subject: [PATCH] Remove unncessary test cases --- internal/mode/static/state/change_processor_test.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/mode/static/state/change_processor_test.go b/internal/mode/static/state/change_processor_test.go index 12da0faa69..56c6722bd2 100644 --- a/internal/mode/static/state/change_processor_test.go +++ b/internal/mode/static/state/change_processor_test.go @@ -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