diff --git a/tests/test_trade_pipeline.py b/tests/test_trade_pipeline.py index d27b0197..60698fad 100644 --- a/tests/test_trade_pipeline.py +++ b/tests/test_trade_pipeline.py @@ -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,