@@ -724,7 +724,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
724724 // because thats an update.
725725 t .Run ("Delete Non New" ,
726726 func (t * testing.T ) {
727- lv := newLeafVariants (& TreeContext {})
727+ lv := newLeafVariants (& TreeContext {}, nil )
728728
729729 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 2 , owner1 , ts ), flagsExisting , nil ))
730730 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 1 , owner2 , ts ), flagsExisting , nil ))
@@ -743,7 +743,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
743743 // should return nil
744744 t .Run ("Single entry thats also marked for deletion" ,
745745 func (t * testing.T ) {
746- lv := newLeafVariants (& TreeContext {})
746+ lv := newLeafVariants (& TreeContext {}, nil )
747747 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 1 , owner1 , ts ), flagsExisting , nil ))
748748 lv .les [0 ].MarkDelete (false )
749749
@@ -759,7 +759,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
759759 // on onlyIfPrioChanged == true we do not expect output.
760760 t .Run ("New Low Prio IsUpdate OnlyChanged True" ,
761761 func (t * testing.T ) {
762- lv := newLeafVariants (& TreeContext {})
762+ lv := newLeafVariants (& TreeContext {}, nil )
763763 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 5 , owner1 , ts ), flagsExisting , nil ))
764764 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 6 , owner2 , ts ), flagsNew , nil ))
765765 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , RunningValuesPrio , RunningIntentName , ts ), flagsExisting , nil ))
@@ -776,7 +776,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
776776 // on onlyIfPrioChanged == false we do not expect the highes prio update to be returned.
777777 t .Run ("New Low Prio IsUpdate OnlyChanged False" ,
778778 func (t * testing.T ) {
779- lv := newLeafVariants (& TreeContext {})
779+ lv := newLeafVariants (& TreeContext {}, nil )
780780 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 5 , owner1 , ts ), flagsExisting , nil ))
781781 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 6 , owner1 , ts ), flagsNew , nil ))
782782
@@ -792,7 +792,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
792792 // // on onlyIfPrioChanged == true we do not expect output.
793793 t .Run ("New Low Prio IsNew OnlyChanged == True" ,
794794 func (t * testing.T ) {
795- lv := newLeafVariants (& TreeContext {})
795+ lv := newLeafVariants (& TreeContext {}, nil )
796796
797797 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 5 , owner1 , ts ), flagsExisting , nil ))
798798 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 6 , owner2 , ts ), flagsNew , nil ))
@@ -810,7 +810,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
810810 // // on onlyIfPrioChanged == true we do not expect output.
811811 t .Run ("New Low Prio IsNew OnlyChanged == True, with running not existing" ,
812812 func (t * testing.T ) {
813- lv := newLeafVariants (& TreeContext {})
813+ lv := newLeafVariants (& TreeContext {}, nil )
814814
815815 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 5 , owner1 , ts ), flagsExisting , nil ))
816816 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 6 , owner2 , ts ), flagsNew , nil ))
@@ -825,7 +825,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
825825
826826 t .Run ("New Low Prio IsNew OnlyChanged == False" ,
827827 func (t * testing.T ) {
828- lv := newLeafVariants (& TreeContext {})
828+ lv := newLeafVariants (& TreeContext {}, nil )
829829 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 5 , owner1 , ts ), flagsExisting , nil ))
830830 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 6 , owner2 , ts ), flagsNew , nil ))
831831
@@ -853,7 +853,7 @@ func TestLeafVariants_GetHighesPrio(t *testing.T) {
853853 // make sure the secondhighes is also populated if the highes was the first entry
854854 t .Run ("secondhighes populated if highes was first" ,
855855 func (t * testing.T ) {
856- lv := newLeafVariants (& TreeContext {})
856+ lv := newLeafVariants (& TreeContext {}, nil )
857857 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 1 , owner1 , ts ), flagsExisting , nil ))
858858 lv .les [0 ].MarkDelete (false )
859859 lv .Add (NewLeafEntry (types .NewUpdate (path , nil , 2 , owner2 , ts ), flagsExisting , nil ))
0 commit comments