Skip to content

Commit 5e0ff50

Browse files
committed
fix negative test case
1 parent 554a788 commit 5e0ff50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/gateway2/translator/plugins/listeneroptions/listener_options_plugin_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ var _ = Describe("ListenerOptions Plugin", func() {
5656
}
5757

5858
expectedOptions = &v1.ListenerOptions{
59+
// from config
5960
PerConnectionBufferLimitBytes: &wrapperspb.UInt32Value{
6061
Value: uint32(419),
6162
},
63+
// base
6264
ProxyProtocol: &proxy_protocol.ProxyProtocol{},
6365
}
6466
})
@@ -108,7 +110,7 @@ var _ = Describe("ListenerOptions Plugin", func() {
108110
It("does not add buffer limit", func() {
109111
err := plugin.ApplyListenerPlugin(ctx, listenerCtx, outputListener)
110112
Expect(err).ToNot(HaveOccurred())
111-
Expect(outputListener.GetOptions()).To(BeNil())
113+
Expect(outputListener.GetOptions().GetPerConnectionBufferLimitBytes()).To(BeNil())
112114
})
113115
})
114116

@@ -120,7 +122,7 @@ var _ = Describe("ListenerOptions Plugin", func() {
120122
It("does not add buffer limit", func() {
121123
err := plugin.ApplyListenerPlugin(ctx, listenerCtx, outputListener)
122124
Expect(err).ToNot(HaveOccurred())
123-
Expect(outputListener.GetOptions()).To(BeNil())
125+
Expect(outputListener.GetOptions().GetPerConnectionBufferLimitBytes()).To(BeNil())
124126
})
125127
})
126128
})

0 commit comments

Comments
 (0)