mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Dup array to prevent race conditions
This commit is contained in:
parent
8fe9f2201e
commit
6b2d6a1012
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def value
|
||||
@mutex.synchronize { @value }
|
||||
@mutex.synchronize { @value.dup }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue