Skip to content

Commit

Permalink
Make Quantum unit test deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed Dec 13, 2021
1 parent ad64451 commit ee41213
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_quantum.py
Expand Up @@ -68,7 +68,8 @@ def _buildFullQuantum(self, taskName, addRecords=False) -> Tuple[Quantum, Iterab

visit = universe['visit']
region = Circle()
hashed = hash(visit).to_bytes(30, 'little')
# create a synthetic value to mock as a visit hash
hashed = hash(5786663976355850161).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,
Expand Down

0 comments on commit ee41213

Please sign in to comment.