From d3bce2d7ff0c231140430afbc6af9e9990f81847 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 14 Feb 2025 08:58:31 +0100 Subject: [PATCH] ipv6 is sorted last Signed-off-by: Kristoffer Dalby --- hscontrol/db/db_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscontrol/db/db_test.go b/hscontrol/db/db_test.go index 35170432..a40570a6 100644 --- a/hscontrol/db/db_test.go +++ b/hscontrol/db/db_test.go @@ -74,7 +74,7 @@ func TestMigrationsSQLite(t *testing.T) { // r(32, "192.168.0.24/32", true, true, true), // } want := [][]netip.Prefix{ - {ipp("0.0.0.0/0"), ipp("::/0"), ipp("10.9.110.0/24")}, + {ipp("0.0.0.0/0"), ipp("10.9.110.0/24"), ipp("::/0")}, {ipp("172.100.100.0/24")}, {ipp("0.0.0.0/0"), ipp("::/0")}, {ipp("192.168.0.24/32")}, @@ -129,7 +129,7 @@ func TestMigrationsSQLite(t *testing.T) { r(13, "::/0", true, true, false), r(13, "10.18.80.2/32", true, true, true), } - want := []netip.Prefix{ipp("0.0.0.0/0"), ipp("::/0"), ipp("10.18.80.2/32")} + want := []netip.Prefix{ipp("0.0.0.0/0"), ipp("10.18.80.2/32"), ipp("::/0")} if diff := cmp.Diff(want, node.ApprovedRoutes, util.PrefixComparer); diff != "" { t.Errorf("TestMigrations() mismatch (-want +got):\n%s", diff) }