Skip to content

Commit

Permalink
Merge pull request #254 from randomir/master
Browse files Browse the repository at this point in the history
Bugfix: test failing for not fully yielded solvers
  • Loading branch information
randomir committed Sep 21, 2018
2 parents a3280e7 + 8f4e55d commit 70d8a66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ def test_submit_list_problem(self):
with Client(**config) as client:
solver = client.get_solver()

nan = float('nan')
linear = [0 if qubit in solver.nodes else nan for qubit in range(0, max(solver.nodes)+1)]
linear = [1 if qubit in solver.nodes else 0 for qubit in range(0, max(solver.nodes)+1)]
quad = {key: random.choice([-1, 1]) for key in solver.undirected_edges}

self._submit_and_check(solver, linear, quad)
Expand Down

0 comments on commit 70d8a66

Please sign in to comment.