@@ -340,7 +340,7 @@ func Test_Entry_Three(t *testing.T) {
340340 highPri := LeafEntriesToUpdates (highPriLe )
341341
342342 // diff the result with the expected
343- if diff := testhelper .DiffUpdates ([]* types.Update {n1 , n2 }, highPri ); diff != "" {
343+ if diff := testhelper .DiffUpdates ([]* types.Update {n1 , n2 , u0 , u1_1 , u2_1 }, highPri ); diff != "" {
344344 t .Errorf ("root.GetByOwner() mismatch (-want +got):\n %s" , diff )
345345 }
346346 })
@@ -374,11 +374,11 @@ func Test_Entry_Four(t *testing.T) {
374374 u4 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "13" , "description" }, desc3 , prio50 , owner1 , ts1 )
375375 u4_1 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "13" , "index" }, testhelper .GetUIntTvProto (13 ), prio50 , owner1 , ts1 )
376376
377- u1o2_0 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "name" }, testhelper .GetStringTvProto ("ethernet-1/1" ), prio55 , owner2 , ts1 )
377+ // u1o2_0 := types.NewUpdate([]string{"interface", "ethernet-1/1", "name"}, testhelper.GetStringTvProto("ethernet-1/1"), prio55, owner2, ts1)
378378 u1o2 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "10" , "description" }, desc3 , prio55 , owner2 , ts1 )
379- u1o2_1 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "10" , "index" }, testhelper .GetUIntTvProto (10 ), prio55 , owner2 , ts1 )
379+ // u1o2_1 := types.NewUpdate([]string{"interface", "ethernet-1/1", "subinterface", "10", "index"}, testhelper.GetUIntTvProto(10), prio55, owner2, ts1)
380380 u2o2 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "11" , "description" }, desc3 , prio55 , owner2 , ts1 )
381- u2o2_1 := types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "subinterface" , "11" , "index" }, testhelper .GetUIntTvProto (11 ), prio55 , owner2 , ts1 )
381+ // u2o2_1 := types.NewUpdate([]string{"interface", "ethernet-1/1", "subinterface", "11", "index"}, testhelper.GetUIntTvProto(11), prio55, owner2, ts1)
382382
383383 ctx := context .TODO ()
384384
@@ -461,7 +461,7 @@ func Test_Entry_Four(t *testing.T) {
461461 highPri := LeafEntriesToUpdates (highPriLe )
462462
463463 // diff the result with the expected
464- if diff := testhelper .DiffUpdates ([]* types.Update {n1 , n2 }, highPri ); diff != "" {
464+ if diff := testhelper .DiffUpdates ([]* types.Update {n1 , n2 , u1o1_0 , u1o1_1 , u2o1_1 }, highPri ); diff != "" {
465465 t .Errorf ("root.GetByOwner() mismatch (-want +got):\n %s" , diff )
466466 }
467467 })
@@ -477,7 +477,7 @@ func Test_Entry_Four(t *testing.T) {
477477 t .Run ("Check the old entries are gone from highest (Only New Or Updated)" , func (t * testing.T ) {
478478 highpri := root .GetHighestPrecedence (true )
479479 // diff the result with the expected
480- if diff := testhelper .DiffUpdates ([]* types.Update {u1o2_0 , n1 , n2 , u2o2_1 , u1o2_1 }, highpri .ToUpdateSlice ()); diff != "" {
480+ if diff := testhelper .DiffUpdates ([]* types.Update {u1o1_0 , n1 , n2 , u2o1_1 , u1o1_1 }, highpri .ToUpdateSlice ()); diff != "" {
481481 t .Errorf ("root.GetHighestPrecedence() mismatch (-want +got):\n %s" , diff )
482482 }
483483 })
0 commit comments