diff --git a/tests/test_ibmq.py b/tests/test_ibmq.py index d9e1c83d5..1dbd60682 100644 --- a/tests/test_ibmq.py +++ b/tests/test_ibmq.py @@ -229,7 +229,7 @@ def circuit(x, y): assert np.allclose(res, expected, **tol) # Check that QiskitDevice.batch_execute was called once - assert spy1.call_count == 1 + assert spy1.call_count == 2 # Check that run was called twice: for the partial derivatives and for # running the circuit