Dup array to prevent race conditions
This commit is contained in:
parent
8fe9f2201e
commit
6b2d6a1012
|
@ -22,7 +22,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def value
|
||||
@mutex.synchronize { @value }
|
||||
@mutex.synchronize { @value.dup }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue