Skip to content

Commit

Permalink
primary even if disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Apr 10, 2024
1 parent 528799e commit cb78f44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ func TestEnablingRoutes(t *testing.T) {

if route.GetId() == routeToBeDisabled.GetId() {
assert.Equal(t, false, route.GetEnabled())
assert.Equal(t, false, route.GetIsPrimary())

// since this is the only route of this cidr,
// it will not failover, and remain Primary
// until something can replace it.
assert.Equal(t, true, route.GetIsPrimary())
} else {
assert.Equal(t, true, route.GetEnabled())
assert.Equal(t, true, route.GetIsPrimary())
Expand Down

0 comments on commit cb78f44

Please sign in to comment.