Skip to content

Commit 3515210

Browse files
fix test_withdraw_reward_after_unilateral_cancel
1 parent 4de9cc5 commit 3515210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_trade_pipeline.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def test_withdraw_reward_after_unilateral_cancel(self):
10001000

10011001
# Fetch amount of rewards for taker
10021002
path = reverse("robot")
1003-
taker_headers = trade.get_robot_auth(trade.maker_index)
1003+
taker_headers = trade.get_robot_auth(trade.taker_index)
10041004
response = self.client.get(path, **taker_headers)
10051005

10061006
self.assertEqual(response.status_code, 200)
@@ -1012,8 +1012,8 @@ def test_withdraw_reward_after_unilateral_cancel(self):
10121012
invoice = add_invoice("robot", response.json()["earned_rewards"])
10131013
signed_payout_invoice = sign_message(
10141014
invoice,
1015-
passphrase_path=f"tests/robots/{trade.maker_index}/token",
1016-
private_key_path=f"tests/robots/{trade.maker_index}/enc_priv_key",
1015+
passphrase_path=f"tests/robots/{trade.taker_index}/token",
1016+
private_key_path=f"tests/robots/{trade.taker_index}/enc_priv_key",
10171017
)
10181018
body = {
10191019
"invoice": signed_payout_invoice,

0 commit comments

Comments
 (0)