}
}
<-time.After(time.Millisecond * 100)
- mc.TestLog(t, "VerifyAllClean delay plus 100ms")
+ xapp.Logger.Debug("VerifyAllClean delay plus 100ms")
}
assert.Equal(t, 0, len(mainCtrl.c.registry.register))
verifyE2KeyCount(t, 0)
}
+func (mc *testingSubmgrControl) WaitOngoingRequestMapEmpty() {
+ for i := 0; i < 100; i++ {
+ if len(mainCtrl.c.restDuplicateCtrl.ongoingRequestMap) != 0 {
+ <-time.After(time.Millisecond * 100)
+ xapp.Logger.Debug("WaitOngoingRequestMapEmpty delay plus 100ms")
+ }
+ }
+}
+
func (mc *testingSubmgrControl) GetMetrics(t *testing.T) (string, error) {
req, err := http.NewRequest("GET", "http://localhost:8080/ric/v1/metrics", nil)
if err != nil {