1
0
Fork 0
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:
Thomas Walpole 2019-10-07 17:34:17 -07:00
parent 8fe9f2201e
commit 6b2d6a1012

View file

@ -22,7 +22,7 @@ module Capybara
end
def value
@mutex.synchronize { @value }
@mutex.synchronize { @value.dup }
end
end