X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fhttprestful_test.go;h=465f17bb44711691f593ef0b063c08ab0e41042f;hb=refs%2Fchanges%2F94%2F2094%2F3;hp=cfa644ed07c07619ba65698d0cf79b21423a1bdf;hpb=427929cf789725d9362da7afd960ec01f1054112;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/httprestful_test.go b/pkg/nbi/httprestful_test.go index cfa644e..465f17b 100644 --- a/pkg/nbi/httprestful_test.go +++ b/pkg/nbi/httprestful_test.go @@ -44,6 +44,7 @@ import ( "routing-manager/pkg/stub" "testing" "time" + "sync" "github.com/go-openapi/swag" ) @@ -172,7 +173,8 @@ func TestHttpInstance(t *testing.T) { //ts := createMockAppmgrWithData("127.0.0.1:3000", BasicXAppLists, nil) //ts.Start() //defer ts.Close() - err = httpinstance.Initialize(XMURL, "httpgetter", "rt.json", "config.json", sdlEngine, rpeEngine, triggerSBI) + var m sync.Mutex + err = httpinstance.Initialize(XMURL, "httpgetter", "rt.json", "config.json", sdlEngine, rpeEngine, triggerSBI, &m) } func TestXappCallbackDataChannelwithdata(t *testing.T) {