diff --git a/tests/BoAT_platon_linuxDefault/01Wallet.c b/tests/BoAT_platon_linuxDefault/01Wallet.c index 6a88887bb..f778510f1 100644 --- a/tests/BoAT_platon_linuxDefault/01Wallet.c +++ b/tests/BoAT_platon_linuxDefault/01Wallet.c @@ -72,6 +72,7 @@ START_TEST(test_001CreateWallet_0001CreateOneTimeWalletSuccess) { BSINT32 rtnVal; BoatPlatONWallet *g_platon_wallet_ptr = NULL; + BoatIotSdkInit(); BoatPlatONWalletConfig wallet = get_platon_wallet_settings(); extern BoatIotSdkContext g_boat_iot_sdk_context; @@ -114,7 +115,6 @@ START_TEST(test_001CreateWallet_0002CreateOneTimeWalletFailureNullConfig) /* 3-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false); - BoatIotSdkDeInit(); } END_TEST @@ -157,6 +157,7 @@ START_TEST(test_001CreateWallet_0004CreateLoadWalletSuccess) { BSINT32 rtnVal; BoatPlatONWallet *g_platon_wallet_ptr = NULL; + BoatIotSdkInit(); extern BoatIotSdkContext g_boat_iot_sdk_context; /* 1. execute unit test */ @@ -191,7 +192,6 @@ START_TEST(test_001CreateWallet_0005CreateLoadWalletFailureNoExist) /* 2-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == true); ck_assert(g_boat_iot_sdk_context.wallet_list[1].is_used == false); - BoatIotSdkDeInit(); } END_TEST @@ -210,7 +210,6 @@ START_TEST(test_001CreateWallet_0006CreateOneTimeWalletFailureShortSize) /* 2-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false); - BoatIotSdkDeInit(); } END_TEST @@ -229,7 +228,6 @@ START_TEST(test_001CreateWallet_0007CreateOneTimeWalletSuccessLongSize) /* 2-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false); - BoatIotSdkDeInit(); } END_TEST @@ -246,7 +244,6 @@ START_TEST(test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown) /* 2-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false); - BoatIotSdkDeInit(); } END_TEST