Update script of run_go_codecov (#7248)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-08-23 22:01:51 +08:00 committed by GitHub
parent f5451d12f3
commit 780a4d2c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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