Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Gupta <[email protected]>
  • Loading branch information
varungup90 committed Mar 3, 2025
1 parent 1153f19 commit fac9b64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/plugins/gateway/algorithms/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func TestWithIPPods(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand All @@ -121,6 +125,10 @@ func TestWithIPPods(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand Down Expand Up @@ -182,6 +190,10 @@ func TestSelectRandomPod(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand All @@ -199,6 +211,10 @@ func TestSelectRandomPod(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand All @@ -210,6 +226,10 @@ func TestSelectRandomPod(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand All @@ -221,6 +241,10 @@ func TestSelectRandomPod(t *testing.T) {
Type: v1.PodReady,
Status: v1.ConditionTrue,
},
{
Type: v1.ContainersReady,
Status: v1.ConditionTrue,
},
},
},
},
Expand Down

0 comments on commit fac9b64

Please sign in to comment.