Modify pulsar address in unittest

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/4973/head^2
sunby 2020-11-21 18:36:14 +08:00 committed by yefu.chen
parent 1e2e88a3c2
commit 2ebf3b55e4
1 changed files with 4 additions and 2 deletions

View File

@ -231,12 +231,13 @@ func startupMaster() {
if err != nil {
panic(err)
}
pulsarAddress := Params.PulsarAddress()
opt := &Option{
KVRootPath: "/test/root/kv",
MetaRootPath: "/test/root/meta",
EtcdAddr: []string{etcdAddress},
PulsarAddr: "pulsar://localhost:6650",
PulsarAddr: pulsarAddress,
ProxyIDs: []typeutil.UniqueID{1, 2},
PulsarProxyChannels: []string{"proxy1", "proxy2"},
PulsarProxySubName: "proxyTopics",
@ -326,8 +327,9 @@ func TestSegmentManager_RPC(t *testing.T) {
// test stats
segID := assignments[0].SegID
pulsarAddress := Params.PulsarAddress()
ms := msgstream.NewPulsarMsgStream(ctx, 1024)
ms.SetPulsarClient("pulsar://localhost:6650")
ms.SetPulsarClient(pulsarAddress)
ms.CreatePulsarProducers([]string{"statistic"})
ms.Start()
defer ms.Close()