@@ -80,12 +80,12 @@ func TestExplicitDeleteVisitor_Visit(t *testing.T) {
8080 t .Error (err )
8181 }
8282
83- err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , owner1 , owner1Prio , flagsNew )
83+ err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , owner1 , owner1Prio , flagsExisting )
8484 if err != nil {
8585 t .Error (err )
8686 }
8787
88- err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , RunningIntentName , RunningValuesPrio , flagsNew )
88+ err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , RunningIntentName , RunningValuesPrio , flagsExisting )
8989 if err != nil {
9090 t .Error (err )
9191 }
@@ -126,12 +126,12 @@ func TestExplicitDeleteVisitor_Visit(t *testing.T) {
126126 t .Error (err )
127127 }
128128
129- err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , owner1 , owner1Prio , flagsNew )
129+ err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , owner1 , owner1Prio , flagsExisting )
130130 if err != nil {
131131 t .Error (err )
132132 }
133133
134- err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , RunningIntentName , RunningValuesPrio , flagsNew )
134+ err = testhelper .LoadYgotStructIntoTreeRoot (ctx , config1 (), root , RunningIntentName , RunningValuesPrio , flagsExisting )
135135 if err != nil {
136136 t .Error (err )
137137 }
@@ -190,14 +190,18 @@ func TestExplicitDeleteVisitor_Visit(t *testing.T) {
190190 }
191191 }
192192
193- //
193+ // get the resulting deletes
194194 dels , err := root .GetDeletes (true )
195195 if err != nil {
196196 t .Error (err )
197197 return
198198 }
199199 t .Logf ("Deletes:\n %s" , dels .PathSlices ().StringSlice ())
200- t .Errorf ("foo" )
200+ updates := root .GetHighestPrecedence (true )
201+
202+ t .Logf ("Updates:\n %s" , updates .String ())
203+
204+ t .Error (nil )
201205 })
202206 }
203207}
0 commit comments