Skip to content

Commit 99f3021

Browse files
author
abel
committed
(fix) Fixed failing unit test
1 parent b44ebd2 commit 99f3021

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/client/chain/stream_grpc/test_chain_grpc_chain_stream.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async def test_stream(
5757
order_hash=b"\xaa\xb0Ju\xa3)@\xfe\xd58N\xba\xdfG\xfd\xd8}\xe4\r\xf4\xf8a\xd9\n\xa9\xd6x+V\x9b\x02&",
5858
fee_recipient_address="inj13ylj40uqx338u5xtccujxystzy39q08q2gz3dx",
5959
cid="HBOTSIJUT60b77b9c56f0456af96c5c6c0d8",
60+
trade_id=f"{block_height}_0",
6061
)
6162
position_delta = exchange_pb.PositionDelta(
6263
is_long=True,
@@ -75,6 +76,7 @@ async def test_stream(
7576
order_hash="0xe549e4750287c93fcc8dec24f319c15025e07e89a8d0937be2b3865ed79d9da7",
7677
fee_recipient_address="inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt",
7778
cid="cid1",
79+
trade_id=f"{block_height}_1",
7880
)
7981
spot_order_info = exchange_pb.OrderInfo(
8082
subaccount_id="0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000004",
@@ -255,6 +257,7 @@ async def test_stream(
255257
"orderHash": base64.b64encode(spot_trade.order_hash).decode(),
256258
"feeRecipientAddress": spot_trade.fee_recipient_address,
257259
"cid": spot_trade.cid,
260+
"tradeId": spot_trade.trade_id,
258261
},
259262
],
260263
"derivativeTrades": [
@@ -274,6 +277,7 @@ async def test_stream(
274277
"orderHash": derivative_trade.order_hash,
275278
"feeRecipientAddress": derivative_trade.fee_recipient_address,
276279
"cid": derivative_trade.cid,
280+
"tradeId": derivative_trade.trade_id,
277281
}
278282
],
279283
"spotOrders": [

0 commit comments

Comments
 (0)