mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-05 22:10:10 +00:00
fix test_withdraw_reward_after_unilateral_cancel
This commit is contained in:
parent
e9c25dbe65
commit
7bfafc933e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user