mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-11 05:31:09 +00:00
17 lines
478 B
YAML
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.']
|
|
|