Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Implementing Parser Tests #81

Open
ghost opened this issue Dec 9, 2014 · 0 comments
Open

Implementing Parser Tests #81

ghost opened this issue Dec 9, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 9, 2014

Optimally something like this would be possible https://github.com/porcupine/counterblockd/blob/modular-tests/lib/modules/tests.py

i.e. reparse up to block X across different head states and check collection hashes.

Unfortunately MongoDB uses random variables in the default ObjectId's (collision avoidance I guess?) http://docs.mongodb.org/manual/reference/object-id/ making collection hashes differ.
One possibility is to not use the default objectid's - the other is to populate several databases during testing and then compare their collections item by item.
Thoughts?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants