From 5e0ff50695c587f518d9f401e01a20a671fa31e9 Mon Sep 17 00:00:00 2001 From: Steven Landow Date: Mon, 20 Jan 2025 23:26:27 -0800 Subject: [PATCH] fix negative test case --- .../plugins/listeneroptions/listener_options_plugin_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/gateway2/translator/plugins/listeneroptions/listener_options_plugin_test.go b/projects/gateway2/translator/plugins/listeneroptions/listener_options_plugin_test.go index ca223818aa5..f1ab8a524ec 100644 --- a/projects/gateway2/translator/plugins/listeneroptions/listener_options_plugin_test.go +++ b/projects/gateway2/translator/plugins/listeneroptions/listener_options_plugin_test.go @@ -56,9 +56,11 @@ var _ = Describe("ListenerOptions Plugin", func() { } expectedOptions = &v1.ListenerOptions{ + // from config PerConnectionBufferLimitBytes: &wrapperspb.UInt32Value{ Value: uint32(419), }, + // base ProxyProtocol: &proxy_protocol.ProxyProtocol{}, } }) @@ -108,7 +110,7 @@ var _ = Describe("ListenerOptions Plugin", func() { It("does not add buffer limit", func() { err := plugin.ApplyListenerPlugin(ctx, listenerCtx, outputListener) Expect(err).ToNot(HaveOccurred()) - Expect(outputListener.GetOptions()).To(BeNil()) + Expect(outputListener.GetOptions().GetPerConnectionBufferLimitBytes()).To(BeNil()) }) }) @@ -120,7 +122,7 @@ var _ = Describe("ListenerOptions Plugin", func() { It("does not add buffer limit", func() { err := plugin.ApplyListenerPlugin(ctx, listenerCtx, outputListener) Expect(err).ToNot(HaveOccurred()) - Expect(outputListener.GetOptions()).To(BeNil()) + Expect(outputListener.GetOptions().GetPerConnectionBufferLimitBytes()).To(BeNil()) }) }) })