sconover / wrong

Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
MIT License
434 stars 31 forks source link

Race Condition with "reentry" #35

Open eqv opened 11 years ago

eqv commented 11 years ago

https://github.com/ranmrdrakono/wrong/blob/master/lib/wrong/assert.rb#L23-L24

This lines cause race conditions. I propose to use thread_variable to identify recursion problems while avoiding multi threading issues