From 64d1fa2de27832864af40ce7c5d1edccf1048038 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Fri, 25 Jun 2021 10:24:11 +0800 Subject: [PATCH] Banner use UTC time (#6102) * banner use UTC time Signed-off-by: yudong.cai * rename master to rootcoord Signed-off-by: yudong.cai --- Makefile | 2 +- internal/rootcoord/root_coord_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index e17d4862d3..59dd3c424b 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ binlog: @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/binlog $(PWD)/cmd/binlog/main.go 1>/dev/null BUILD_TAGS = $(shell git describe --tags --always --dirty="-dev") -BUILD_TIME = $(shell date) +BUILD_TIME = $(shell date --utc) GIT_COMMIT = $(shell git rev-parse --short HEAD) GO_VERSION = $(shell go version) diff --git a/internal/rootcoord/root_coord_test.go b/internal/rootcoord/root_coord_test.go index 14d84c0738..1d3e2970c2 100644 --- a/internal/rootcoord/root_coord_test.go +++ b/internal/rootcoord/root_coord_test.go @@ -277,8 +277,8 @@ func TestRootCoord(t *testing.T) { assert.Nil(t, err) randVal := rand.Int() - Params.TimeTickChannel = fmt.Sprintf("master-time-tick-%d", randVal) - Params.StatisticsChannel = fmt.Sprintf("master-statistics-%d", randVal) + Params.TimeTickChannel = fmt.Sprintf("rootcoord-time-tick-%d", randVal) + Params.StatisticsChannel = fmt.Sprintf("rootcoord-statistics-%d", randVal) Params.MetaRootPath = fmt.Sprintf("/%d/%s", randVal, Params.MetaRootPath) Params.KvRootPath = fmt.Sprintf("/%d/%s", randVal, Params.KvRootPath) Params.MsgChannelSubName = fmt.Sprintf("subname-%d", randVal) @@ -1534,10 +1534,10 @@ func TestRootCoord(t *testing.T) { assert.Equal(t, commonpb.ErrorCode_UnexpectedError, s.ErrorCode) time.Sleep(1 * time.Second) - // 2 proxy nodes, 1 master + // 2 proxy, 1 rootcoord assert.Equal(t, 3, core.chanTimeTick.GetProxyNum()) - // 3 proxy node channels, 2 master channels + // 3 proxy channels, 2 rootcoord channels assert.Equal(t, 5, core.chanTimeTick.GetChanNum()) }) @@ -1756,8 +1756,8 @@ func TestRootCoord2(t *testing.T) { assert.Nil(t, err) randVal := rand.Int() - Params.TimeTickChannel = fmt.Sprintf("master-time-tick-%d", randVal) - Params.StatisticsChannel = fmt.Sprintf("master-statistics-%d", randVal) + Params.TimeTickChannel = fmt.Sprintf("rootcoord-time-tick-%d", randVal) + Params.StatisticsChannel = fmt.Sprintf("rootcoord-statistics-%d", randVal) Params.MetaRootPath = fmt.Sprintf("/%d/%s", randVal, Params.MetaRootPath) Params.KvRootPath = fmt.Sprintf("/%d/%s", randVal, Params.KvRootPath) Params.MsgChannelSubName = fmt.Sprintf("subname-%d", randVal)