Skip to content

Commit

Permalink
fix negative test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenctl committed Jan 21, 2025
1 parent 554a788 commit 5e0ff50
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
})
Expand Down Expand Up @@ -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())
})
})

Expand All @@ -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())
})
})
})
Expand Down

0 comments on commit 5e0ff50

Please sign in to comment.