ozontech / allure-go

Complete Allure provider in Go which doesn't overload the interface usage
https://t.me/allure_go_chat
Apache License 2.0
317 stars 34 forks source link

Data race in parallel tests #74

Closed nejtr0n closed 1 year ago

nejtr0n commented 1 year ago

Describe the bug TestResults in pkg/framework/runner/tests.go shoudl be protected with mutex to save write in parralel tests

To Reproduce If we start async example (https://github.com/ozontech/allure-go/blob/master/examples/async/async_suite_test.go) with data race flags

go test -v -race -parallel 10

We could see data race error in test results write

Expected behavior No data race error