Skip to content

Commit

Permalink
quick upstream test update
Browse files Browse the repository at this point in the history
  • Loading branch information
miledxz committed Aug 20, 2024
1 parent 27fed56 commit 2626ca2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions internal/mode/static/nginx/runtime/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,16 @@ var _ = Describe("NGINX Runtime Manager", func() {
Peers: []ngxclient.Peer{
{ID: 1, Name: "peer1-name"},
},
Queue: ngxclient.Queue{Size: 10},
Keepalives: 5,
Zombies: 2,
Queue: ngxclient.Queue{Size: 10},
Zombies: 2,
},
"upstream2": {
Zone: "zone2",
Peers: []ngxclient.Peer{
{ID: 2, Name: "peer2-name"},
},
Queue: ngxclient.Queue{Size: 20},
Keepalives: 3,
Zombies: 1,
Queue: ngxclient.Queue{Size: 20},
Zombies: 1,
},
}

Expand All @@ -184,7 +182,7 @@ var _ = Describe("NGINX Runtime Manager", func() {
upstreams, err := manager.GetUpstreams()

Expect(err).NotTo(HaveOccurred())
Expect(upstreams).To(Equal(expUpstreams))
Expect(expUpstreams).To(Equal(upstreams))
})

It("returns an error when GetUpstreams fails", func() {
Expand Down

0 comments on commit 2626ca2

Please sign in to comment.