This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/librethinkdbxx/test/upstream/regression/2838.py.yaml
2017-11-02 07:05:11 -07:00

17 lines
478 B
YAML

desc: Test that return_changes fails gracefully.
table_variable_name: tbl
tests:
- py: tbl.insert([{'result':i} for i in range(1,100)]).pluck('first_error', 'inserted')
ot: {'inserted':99}
- py: tbl.update({'foo':'bar'}, return_changes=True)['changes'].count()
runopts:
array_limit: 40
ot: 40
- py: tbl.update({'foo':'quux'}, return_changes=True)['warnings']
runopts:
array_limit: 40
ot: ['Too many changes, array truncated to 40.']