mirror of https://github.com/milvus-io/milvus.git
Update script of run_go_codecov (#7248)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/7248/merge
parent
f5451d12f3
commit
780a4d2c8e
|
@ -287,6 +287,7 @@ func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Cons
|
||||||
// keyExist = rmq.checkKeyExist(key)
|
// keyExist = rmq.checkKeyExist(key)
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if rmq.checkKeyExist(key) {
|
if rmq.checkKeyExist(key) {
|
||||||
if vals, ok := rmq.consumers.Load(topicName); ok {
|
if vals, ok := rmq.consumers.Load(topicName); ok {
|
||||||
for _, v := range vals.([]*Consumer) {
|
for _, v := range vals.([]*Consumer) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
echo "" > coverage.txt
|
echo "" > coverage.txt
|
||||||
|
|
||||||
for d in $(go list ./internal... | grep -v vendor); do
|
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
|
if [ -f profile.out ]; then
|
||||||
cat profile.out >> coverage.txt
|
cat profile.out >> coverage.txt
|
||||||
rm profile.out
|
rm profile.out
|
||||||
|
|
Loading…
Reference in New Issue