Closed ricellis closed 4 years ago
The data_size field is no longer present in CouchDB 3.x so remove it from the assertion for compatibility.
CHANGES.md
CHANGELOG.md
Removed data_size from view info assertion
tests.unit.design_document_tests.DesignDocumentTests.test_get_info
Test to pass
Assertion failure:
{'vie[33 chars]se, 'waiting_clients': 0, 'waiting_commit': Fa[104 chars]001'} != {'vie[33 chars]se, 'update_seq': 0, 'waiting_clients': 0, 'wa[120 chars]001'} {'name': 'ddoc001', 'view_index': {'compact_running': False, + 'data_size': 0, 'language': 'javascript', 'purge_seq': 0, 'update_seq': 0, 'updater_running': False, 'waiting_clients': 0, 'waiting_commit': False}}
Remove the data_size element from the view info before asserting as it is no longer present in CouchDB 3.
data_size
The data_size field is no longer present in CouchDB 3.x so remove it from the assertion for compatibility.
Checklist
CHANGES.md
|CHANGELOG.md
) or test/build only changesDescription
Removed data_size from view info assertion
1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
tests.unit.design_document_tests.DesignDocumentTests.test_get_info
with CouchDB 3 rc12. What you expected to happen
Test to pass
3. What actually happened
Assertion failure:
Approach
Remove the
data_size
element from the view info before asserting as it is no longer present in CouchDB 3.Schema & API Changes
Security and Privacy
Testing
Monitoring and Logging