Don't make rmr stub check if there is none of them
[ric-plt/submgr.git] / pkg / teststub / controlRmrStub.go
index a8c861f..a01a0a5 100644 (file)
@@ -147,6 +147,10 @@ func RmrStubControlWaitAlive(seconds int, mtype int, rmr xapptweaks.XAppWrapperI
        params.Xid = "TESTPING"
        params.Mbuf = nil
 
+       if len(allRmrStubs) == 0 {
+               rmr.GetLogger().Info("No rmr stubs so no need to wait those to be alive")
+               return true
+       }
        status := false
        i := 1
        for ; i <= seconds*2 && status == false; i++ {