Skip to content

Commit d31aaeb

Browse files
author
ubuntu
committed
fix some unit tests
1 parent 20ea401 commit d31aaeb

File tree

1 file changed

+3
-3
lines changed
  • test/test_unit/src/execution_management/binance_usds_futures

1 file changed

+3
-3
lines changed

test/test_unit/src/execution_management/binance_usds_futures/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertRequestGetAccoun
323323
EXPECT_EQ(req.method(), http::verb::get);
324324
verifyApiKey(req, this->credential.at(CCAPI_BINANCE_USDS_FUTURES_API_KEY));
325325
auto splitted = UtilString::split(std::string(req.target()), "?");
326-
EXPECT_EQ(splitted.at(0), "/fapi/v2/account");
326+
EXPECT_EQ(splitted.at(0), "/fapi/v3/account");
327327
auto paramMap = Url::convertQueryStringToMap(splitted.at(1));
328328
EXPECT_EQ(paramMap.at("timestamp"), std::to_string(this->timestamp));
329329
verifySignature(splitted.at(1), this->credential.at(CCAPI_BINANCE_USDS_FUTURES_API_SECRET));
@@ -443,7 +443,7 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertTextMessageToMes
443443
"entryPrice": "0.00000",
444444
"maxNotional": "250000",
445445
"positionSide": "BOTH",
446-
"positionAmt": "0",
446+
"positionAmt": "10",
447447
"updateTime": 0
448448
}
449449
]
@@ -458,7 +458,7 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertTextMessageToMes
458458
Element element = elementList.at(0);
459459
EXPECT_EQ(element.getValue(CCAPI_INSTRUMENT), "BTCUSDT");
460460
EXPECT_EQ(element.getValue(CCAPI_EM_POSITION_SIDE), "BOTH");
461-
EXPECT_EQ(element.getValue(CCAPI_EM_POSITION_QUANTITY), "0");
461+
EXPECT_EQ(element.getValue(CCAPI_EM_POSITION_QUANTITY), "10");
462462
EXPECT_DOUBLE_EQ(std::stod(element.getValue(CCAPI_EM_POSITION_ENTRY_PRICE)), 0);
463463
}
464464

0 commit comments

Comments
 (0)