未验证 提交 780a4d2c 编写于 作者: W wt 提交者: GitHub

Update script of run_go_codecov (#7248)

Signed-off-by: Nwangting0128 <ting.wang@zilliz.com>
上级 f5451d12
......@@ -287,6 +287,7 @@ func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Cons
// keyExist = rmq.checkKeyExist(key)
// }
// }
if rmq.checkKeyExist(key) {
if vals, ok := rmq.consumers.Load(topicName); ok {
for _, v := range vals.([]*Consumer) {
......
......@@ -4,7 +4,7 @@ set -e
echo "" > coverage.txt
for d in $(go list ./internal... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
go test -race -coverpkg=./... -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册