X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fut_ctrl_submgr_test.go;h=ea3ffd9ee7b016162f8f38a4f0c417f7a911fb97;hb=b43397e236303243729347b327d9ace8262469d9;hp=65edd1b50dde01b14a45f899812fd26a6fc2821e;hpb=afadb6df033657afef927964aa637ba7c8fc0880;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/ut_ctrl_submgr_test.go b/pkg/control/ut_ctrl_submgr_test.go index 65edd1b..ea3ffd9 100644 --- a/pkg/control/ut_ctrl_submgr_test.go +++ b/pkg/control/ut_ctrl_submgr_test.go @@ -21,7 +21,6 @@ package control import ( "fmt" - "github.com/stretchr/testify/assert" "io/ioutil" "net/http" "strconv" @@ -29,6 +28,8 @@ import ( "testing" "time" + "github.com/stretchr/testify/assert" + "gerrit.o-ran-sc.org/r/ric-plt/submgr/pkg/teststub" "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/models" "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" @@ -289,7 +290,13 @@ func (mc *testingSubmgrControl) wait_msgcounter_change(t *testing.T, orig uint64 func (mc *testingSubmgrControl) VerifyAllClean(t *testing.T) { // Verify that all resources are freed assert.Equal(t, 0, len(mainCtrl.c.registry.register)) + if len(mainCtrl.c.registry.register) > 0 { + fmt.Printf("registry.register: %v\n", mainCtrl.c.registry.register) + } assert.Equal(t, 0, len(mainCtrl.c.registry.restSubscriptions)) + if len(mainCtrl.c.registry.restSubscriptions) > 0 { + fmt.Printf("registry.restSubscriptions: %v\n", mainCtrl.c.registry.restSubscriptions) + } verifyRESTKeyCount(t, 0) verifyE2KeyCount(t, 0) }