Skip to content

Commit

Permalink
(fix) Fixed failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
abel committed Dec 7, 2023
1 parent b44ebd2 commit 99f3021
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async def test_stream(
order_hash=b"\xaa\xb0Ju\xa3)@\xfe\xd58N\xba\xdfG\xfd\xd8}\xe4\r\xf4\xf8a\xd9\n\xa9\xd6x+V\x9b\x02&",
fee_recipient_address="inj13ylj40uqx338u5xtccujxystzy39q08q2gz3dx",
cid="HBOTSIJUT60b77b9c56f0456af96c5c6c0d8",
trade_id=f"{block_height}_0",
)
position_delta = exchange_pb.PositionDelta(
is_long=True,
Expand All @@ -75,6 +76,7 @@ async def test_stream(
order_hash="0xe549e4750287c93fcc8dec24f319c15025e07e89a8d0937be2b3865ed79d9da7",
fee_recipient_address="inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt",
cid="cid1",
trade_id=f"{block_height}_1",
)
spot_order_info = exchange_pb.OrderInfo(
subaccount_id="0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000004",
Expand Down Expand Up @@ -255,6 +257,7 @@ async def test_stream(
"orderHash": base64.b64encode(spot_trade.order_hash).decode(),
"feeRecipientAddress": spot_trade.fee_recipient_address,
"cid": spot_trade.cid,
"tradeId": spot_trade.trade_id,
},
],
"derivativeTrades": [
Expand All @@ -274,6 +277,7 @@ async def test_stream(
"orderHash": derivative_trade.order_hash,
"feeRecipientAddress": derivative_trade.fee_recipient_address,
"cid": derivative_trade.cid,
"tradeId": derivative_trade.trade_id,
}
],
"spotOrders": [
Expand Down

0 comments on commit 99f3021

Please sign in to comment.