X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fsbi%2Fnngpush_test.go;h=79821eb8672c742c0a64c32031e34878378ec79c;hb=refs%2Fchanges%2F51%2F4551%2F1;hp=f2f8fe1993acc4fedfcd44f6d0a0bd56216c177c;hpb=7aaff4b8442554103e1e332d475fc7f232969831;p=ric-plt%2Frtmgr.git diff --git a/pkg/sbi/nngpush_test.go b/pkg/sbi/nngpush_test.go index f2f8fe1..79821eb 100644 --- a/pkg/sbi/nngpush_test.go +++ b/pkg/sbi/nngpush_test.go @@ -131,7 +131,7 @@ func TestDistributeToEp(t *testing.T) { var rmrpush = RmrPush{} resetTestPushDataset(rmrpush, stub.ValidEndpoints) - err = rmrpush.DistributeToEp(stub.ValidPolicies,rtmgr.Eps["localhost"]) + err = rmrpush.DistributeToEp(stub.ValidPolicies,"localhost:4561",100) if err != nil { t.Errorf("rmrpush.DistributetoEp(policies) was incorrect, got: %v, want: %v.", err, "nil") } @@ -152,7 +152,7 @@ func TestCreateEndpoint(t *testing.T) { var rmrpush = RmrPush{} resetTestPushDataset(rmrpush, stub.ValidEndpoints1) rmrpush.CreateEndpoint("192.168.0.1:0","Src=192.168.0.1:4561") - rmrpush.CreateEndpoint("localhost:4560","Src=localhost:4561") + rmrpush.CreateEndpoint("localhost:4560","Src=192.168.11.1:4444") } /* Initialize and send policies