From cb78f44dcbbf8aebadf14f536218462809e253c1 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 10 Apr 2024 13:23:02 +0200 Subject: [PATCH] primary even if disabled Signed-off-by: Kristoffer Dalby --- integration/route_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration/route_test.go b/integration/route_test.go index 6473ec36558..de41d8888d5 100644 --- a/integration/route_test.go +++ b/integration/route_test.go @@ -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())