fix test_withdraw_reward_after_unilateral_cancel

This commit is contained in:
jerryfletcher21 2024-06-17 01:56:33 +02:00
parent e9c25dbe65
commit 7bfafc933e
No known key found for this signature in database
GPG Key ID: 6FA7713E574EDEC3

View File

@ -1000,7 +1000,7 @@ class TradeTest(BaseAPITestCase):
# 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)
@ -1012,8 +1012,8 @@ class TradeTest(BaseAPITestCase):
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,