From a80c28b107d1b575d3fcae4af8c1338014d09bc2 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch <christoph.petrausch@inovex.de> Date: Wed, 15 Apr 2020 21:33:01 +0200 Subject: [PATCH] Use keyed syntax for composite literals --- routingtable/adjRIBIn/adj_rib_in_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routingtable/adjRIBIn/adj_rib_in_test.go b/routingtable/adjRIBIn/adj_rib_in_test.go index 4987332b..e82b671e 100644 --- a/routingtable/adjRIBIn/adj_rib_in_test.go +++ b/routingtable/adjRIBIn/adj_rib_in_test.go @@ -470,7 +470,7 @@ func TestUnregister(t *testing.T) { r := mc.Removed() assert.Equalf(t, 3, len(r), "Should have removed 3 paths, but only removed %d", len(r)) - assert.Equal(t, &routingtable.RemovePathParams{pfxs[0], paths[0]}, r[0], "Withdraw 1") - assert.Equal(t, &routingtable.RemovePathParams{pfxs[0], paths[1]}, r[1], "Withdraw 2") - assert.Equal(t, &routingtable.RemovePathParams{pfxs[1], paths[2]}, r[2], "Withdraw 3") + assert.Equal(t, &routingtable.RemovePathParams{Pfx: pfxs[0], Path: paths[0]}, r[0], "Withdraw 1") + assert.Equal(t, &routingtable.RemovePathParams{Pfx: pfxs[0], Path: paths[1]}, r[1], "Withdraw 2") + assert.Equal(t, &routingtable.RemovePathParams{Pfx: pfxs[1], Path: paths[2]}, r[2], "Withdraw 3") } -- GitLab