Hello, I have a doubt about about thread safety: s...
# mockk
m
Hello, I have a doubt about about thread safety: suppose I'm running the test suite in parallel, so that within the same JVM process test classes are executed by different threads. If a test uses
clearAllMocks()
, is it thread-safe? Will it somehow clear only this class/thread mocks or will it bulldoze everything within the same process? Can it affect the behaviour of another test running in parallel?
e
no it's not thread safe
m
good to know, thank you!