Skip to content

Commit

Permalink
modify thread tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorii committed Apr 2, 2019
1 parent 7a7631c commit c748c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/terra/utils/qasm_simulator/qasm_thread_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_qasm_max_memory_default(self):
backend_opts = {}
result = self.SIMULATOR.run(qobj, backend_options=backend_opts).result()
system_memory = int(psutil.virtual_memory().total / 1024 / 1024)
self.assertGreaterEqual(result.metadata['max_memory_mb'], system_memory / 2, msg="statevector_memory is too small.")
self.assertGreaterEqual(result.metadata['max_memory_mb'], int(system_memory / 2), msg="statevector_memory is too small.")
self.assertLessEqual(result.metadata['max_memory_mb'], system_memory, msg="statevector_memory is too big.")

def test_qasm_max_memory_specified(self):
Expand Down

0 comments on commit c748c76

Please sign in to comment.