test: Delete meaningless judgments
issue
@@ -312,7 +312,6 @@ END_TEST
START_TEST(test_002InitWallet_0004SetChainIdFailureNullParam)
{
BSINT32 rtnVal;
- BoatEthWallet *wallet_ptr = BoatMalloc(sizeof(BoatEthWallet));
BoatEthWalletConfig wallet_config = get_ethereum_wallet_settings();
/* 1. execute unit test */
@@ -321,8 +320,7 @@ START_TEST(test_002InitWallet_0004SetChainIdFailureNullParam)
/* 2-1. verify the return value */
ck_assert_int_eq(rtnVal, BOAT_ERROR_COMMON_INVALID_ARGUMENT);
- /* 2-2. verify the global variables that be affected */
- ck_assert(wallet_ptr->network_info.chain_id == TEST_ETHEREUM_CHAIN_ID);
+
BoatIotSdkDeInit();
}
