in spec/aws/session_store/dynamo_db/locking/threaded_sessions_spec.rb [32:40]
def update_item_mock(options, update_method)
if options[:return_values] == 'UPDATED_NEW' && options.key?(:expected)
sleep(0.50)
update_method.call(options)
else
update_method.call(options)
end
end