[fabric][tests]fix test case failed to run
aitos-io#1346
BoATE-1052
@@ -524,7 +524,7 @@ START_TEST(test_003CreateWallet_0001CreateOneTimeWalletSuccess)
rtnVal = fabric_checkNetworkData(g_fabric_wallet_ptr->network_info, networkConfig, 0);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
+
/* free configuration struct */
fabricWalletConfigFree(networkConfig);
/* check result */
@@ -549,7 +549,6 @@ START_TEST(test_003CreateWallet_0002CreateOneTimeWalletFailureWithoutKeypair)
ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
/* free configuration struct */
fabricWalletConfigFree(networkConfig);
@@ -572,7 +571,6 @@ START_TEST(test_003CreateWallet_0003CreateOneTimeWalletFailureWithoutNetwork)
ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoatIotSdkDeInit();
}
@@ -614,10 +612,6 @@ START_TEST(test_003CreateWallet_0004CreatePersistWalletSuccess)
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
-
- BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
/* delete this network*/
BoATHlfabricNetworkDelete(1);
@@ -642,7 +636,6 @@ START_TEST(test_003CreateWallet_0005CreatePersistWalletFailureWithoutKeypair)
ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
/* free configuration struct */
fabricWalletConfigFree(networkConfig);
@@ -665,7 +658,6 @@ START_TEST(test_003CreateWallet_0006CreatePersistWalletFailureWithoutNetwork)
g_fabric_wallet_ptr = BoatHlfabricWalletInit(keypairIndex, networkIndex);
ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoatHlfabricWalletDeInit(g_fabric_wallet_ptr);
- ck_assert_ptr_eq(g_fabric_wallet_ptr, NULL);
BoATIotKeypairDelete(1);
BoatIotSdkDeInit();
