@@ -695,6 +695,10 @@ func TestDatastore_populateTree(t *testing.T) {
695695 cache .NewUpdate ([]string {"choices" , "case1" , "case-elem" , "elem" }, testhelper .GetStringTvProto (t , "case1-content" ), prio15 , owner1 , 0 ),
696696 cache .NewUpdate ([]string {"choices" , "case1" , "log" }, TypedValueFalse , prio15 , owner1 , 0 ),
697697 },
698+ runningStoreUpdates : []* cache.Update {
699+ cache .NewUpdate ([]string {"choices" , "case1" , "case-elem" , "elem" }, testhelper .GetStringTvProto (t , "case1-content" ), tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
700+ cache .NewUpdate ([]string {"choices" , "case1" , "log" }, TypedValueFalse , tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
701+ },
698702 },
699703 {
700704 name : "ChoiceCase - old highes case" ,
@@ -724,13 +728,18 @@ func TestDatastore_populateTree(t *testing.T) {
724728 cache .NewUpdate ([]string {"choices" , "case1" , "case-elem" , "elem" }, testhelper .GetStringTvProto (t , "case1-content" ), prio5 , owner1 , 0 ),
725729 cache .NewUpdate ([]string {"choices" , "case1" , "log" }, TypedValueFalse , prio5 , owner1 , 0 ),
726730 },
731+ runningStoreUpdates : []* cache.Update {
732+ cache .NewUpdate ([]string {"choices" , "case1" , "case-elem" , "elem" }, testhelper .GetStringTvProto (t , "case1-content" ), tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
733+ cache .NewUpdate ([]string {"choices" , "case1" , "log" }, TypedValueFalse , tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
734+ },
727735 },
728736 }
729737
730738 for _ , tt := range tests {
731739 t .Run (tt .name , func (t * testing.T ) {
732740 // create a gomock controller
733741 controller := gomock .NewController (t )
742+ defer controller .Finish ()
734743
735744 // create a cache client mock
736745 cacheClient := mockcacheclient .NewMockClient (controller )
@@ -820,8 +829,9 @@ func TestDatastore_populateTree(t *testing.T) {
820829 if err != nil {
821830 t .Error (err )
822831 }
823-
832+ fmt . Println ( root . String ())
824833 root .FinishInsertionPhase (ctx )
834+ fmt .Println (root .String ())
825835
826836 validationResult := root .Validate (ctx , false )
827837
0 commit comments