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")
}
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