Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-32950 Make Quantum unit test deterministic #617

Merged
merged 1 commit into from
Dec 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/test_quantum.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ def _buildFullQuantum(self, taskName, addRecords=False) -> Tuple[Quantum, Iterab

visit = universe['visit']
region = Circle()
hashed = hash(visit).to_bytes(30, 'little')
visit_record_42 = visit.RecordClass(id=42, instrument='test', name='test_visit', region=region,
hash=hashed)
visit_record_42 = visit.RecordClass(id=43, instrument='test', name='test_visit', region=region,
hash=hashed)
# create a synthetic value to mock as a visit hash
visit_record_42 = visit.RecordClass(id=42, instrument='test', name='test_visit', region=region,)
visit_record_42 = visit.RecordClass(id=43, instrument='test', name='test_visit', region=region,)

records42 = {instrument: instrumentRecord, band: bandRecord,
physical_filter: physical_filter_record,
Expand Down