Skip to content

Commit

Permalink
fix test_withdraw_reward_after_unilateral_cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryfletcher21 committed Jun 17, 2024
1 parent 8a8723b commit a8e3f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_trade_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def test_withdraw_reward_after_unilateral_cancel(self):

# Fetch amount of rewards for taker
path = reverse("robot")
taker_headers = trade.get_robot_auth(trade.maker_index)
taker_headers = trade.get_robot_auth(trade.taker_index)
response = self.client.get(path, **taker_headers)

self.assertEqual(response.status_code, 200)
Expand All @@ -1012,8 +1012,8 @@ def test_withdraw_reward_after_unilateral_cancel(self):
invoice = add_invoice("robot", response.json()["earned_rewards"])
signed_payout_invoice = sign_message(
invoice,
passphrase_path=f"tests/robots/{trade.maker_index}/token",
private_key_path=f"tests/robots/{trade.maker_index}/enc_priv_key",
passphrase_path=f"tests/robots/{trade.taker_index}/token",
private_key_path=f"tests/robots/{trade.taker_index}/enc_priv_key",
)
body = {
"invoice": signed_payout_invoice,
Expand Down

0 comments on commit a8e3f67

Please sign in to comment.