diff --git a/hack/runtests.sh b/hack/runtests.sh index 440cc7af0..ed0567633 100755 --- a/hack/runtests.sh +++ b/hack/runtests.sh @@ -31,7 +31,7 @@ echo "" > coverage.txt # The executor unit test only works with NodePort-type services for # now. So disable it for our travis ci tests except some partial tests. for d in $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v executor | grep -v 'benchmark') github.com/fission/fission/pkg/executor/util; do - go test -v -coverprofile=profile.out -covermode=atomic $d + go test -race -v -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >> coverage.txt rm profile.out diff --git a/pkg/mqtrigger/messageQueue/azurequeuestorage/asq.go b/pkg/mqtrigger/messageQueue/azurequeuestorage/asq.go index 423a2446e..1073c888e 100644 --- a/pkg/mqtrigger/messageQueue/azurequeuestorage/asq.go +++ b/pkg/mqtrigger/messageQueue/azurequeuestorage/asq.go @@ -319,7 +319,12 @@ func pollAzureQueueSubscription(conn AzureStorageConnection, sub *AzureQueueSubs } func invokeTriggeredFunction(conn AzureStorageConnection, sub *AzureQueueSubscription, message AzureMessage) { - defer message.Delete(nil) //nolint: errCheck + defer func() { + err := message.Delete(nil) + if err != nil { + conn.logger.Error(err.Error()) + } + }() conn.logger.Info("making HTTP request to invoke function", zap.String("function_url", sub.functionURL))