mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-07 06:50:09 +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
|
# Fetch amount of rewards for taker
|
||||||
path = reverse("robot")
|
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)
|
response = self.client.get(path, **taker_headers)
|
||||||
|
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
@ -1012,8 +1012,8 @@ class TradeTest(BaseAPITestCase):
|
|||||||
invoice = add_invoice("robot", response.json()["earned_rewards"])
|
invoice = add_invoice("robot", response.json()["earned_rewards"])
|
||||||
signed_payout_invoice = sign_message(
|
signed_payout_invoice = sign_message(
|
||||||
invoice,
|
invoice,
|
||||||
passphrase_path=f"tests/robots/{trade.maker_index}/token",
|
passphrase_path=f"tests/robots/{trade.taker_index}/token",
|
||||||
private_key_path=f"tests/robots/{trade.maker_index}/enc_priv_key",
|
private_key_path=f"tests/robots/{trade.taker_index}/enc_priv_key",
|
||||||
)
|
)
|
||||||
body = {
|
body = {
|
||||||
"invoice": signed_payout_invoice,
|
"invoice": signed_payout_invoice,
|
||||||
|
Loading…
Reference in New Issue
Block a user