You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using t.parallel()within a test function from a suite containing multiple tests, the allure.Test() can be called concurrently.
However, when this is the case, getCurrentTestPhaseObject function can be called concurrently by multiple tests running in parallel (it's not systematic, but happens quite often).
When it happens, the following fatal error is occuring:
When using
t.parallel()
within a test function from a suite containing multiple tests, theallure.Test()
can be called concurrently.However, when this is the case,
getCurrentTestPhaseObject
function can be called concurrently by multiple tests running in parallel (it's not systematic, but happens quite often).When it happens, the following fatal error is occuring:
To prevent that, I would say that there are two solutions applicable:
sync.Mutex
in the functiongetCurrentTestPhaseObject
fromtest_phase_container.go
init.go
tosync.Map
and adaptgetCurrentTestPhaseObject
accordinglyLet me know if more details are required or if there are inconsistencies in what I describe.
The text was updated successfully, but these errors were encountered: