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
1 changed files with 1 additions and 1 deletions

View File

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