X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fteststub%2FcontrolRmrStub.go;h=d710dca653847ccb87f06182042dc756b0fa05cf;hb=6eb6b06089363569b5fd6eec48c608bc4624d66b;hp=ceccf446bc7856d42d402ca4fb706324e68ec861;hpb=ebaeae67034fe1168d6014bd5c1739d4e09923c0;p=ric-plt%2Fsubmgr.git diff --git a/pkg/teststub/controlRmrStub.go b/pkg/teststub/controlRmrStub.go index ceccf44..d710dca 100644 --- a/pkg/teststub/controlRmrStub.go +++ b/pkg/teststub/controlRmrStub.go @@ -20,7 +20,6 @@ package teststub import ( "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" - "strconv" "strings" "testing" "time" @@ -67,19 +66,24 @@ func (tc *RmrStubControl) TestMsgChanEmpty(t *testing.T) { } } -func (tc *RmrStubControl) Init(desc string, srcId RmrSrcId, rtgSvc RmrRtgSvc, stat string, initMsg int) { +func (tc *RmrStubControl) Init(desc string, srcId RmrSrcId, rtgSvc RmrRtgSvc, statDesc string, initMsg int) { tc.InitMsg = initMsg tc.Active = false tc.RecvChan = make(chan *xapp.RMRParams) tc.RmrControl.Init(desc, srcId, rtgSvc) tc.RMRClient = xapp.NewRMRClientWithParams(&xapp.RMRClientParams{ - ProtPort: "tcp:" + strconv.FormatUint(uint64(srcId.Port), 10), - MaxSize: 65534, - ThreadType: 0, - StatDesc: stat, - LowLatency: false, - FastAck: false, + StatDesc: statDesc, + RmrData: xapp.PortData{ + Name: "", // Not used currently + Port: int(srcId.Port), + MaxSize: 65534, + ThreadType: 0, + LowLatency: false, + FastAck: false, + //Policies: // Not used currently + MaxRetryOnFailure: 1, + }, }) tc.RMRClient.SetReadyCB(tc.ReadyCB, nil)