Skip to content

Commit

Permalink
test[QuorumNetwork][#1382]:
Browse files Browse the repository at this point in the history
Modify function name
  • Loading branch information
zzqAlex committed Mar 1, 2023
1 parent c323167 commit 13c6c67
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/UT/linuxDefault/network/QuorumNetwork/02quorumNetwork.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ START_TEST(test_002quorumNetwork_0001CreateOneTimeNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* get network data by index , index = 0 */
Expand Down Expand Up @@ -128,7 +128,7 @@ START_TEST(test_002quorumNetwork_0002CreateMoreOneTimeNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, i);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
}
Expand Down Expand Up @@ -167,7 +167,7 @@ START_TEST(test_002quorumNetwork_0003CreatePersistNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ;
index of persist networks is form 1 to BOAT_MAX_NETWORK_NUM,
this is the first persist network, the index must equal 1 */
Expand Down Expand Up @@ -208,7 +208,7 @@ START_TEST(test_002quorumNetwork_0004CreateMorePersistNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ;
index of persist networks is form 1 to BOAT_MAX_NETWORK_NUM*/
ck_assert_int_eq(rtnVal, Index);
Expand Down Expand Up @@ -247,7 +247,7 @@ START_TEST(test_002quorumNetwork_0005Create6PersistNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check result of creating persist network */
ck_assert_int_eq(rtnVal, BOAT_ERROR_NETWORK_INDEX_EXCEED);
}
Expand Down Expand Up @@ -369,7 +369,7 @@ START_TEST(test_002quorumNetwork_0009CreatePersistNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network , index must be 3 */
ck_assert_int_eq(rtnVal, 3);
/* get network data by index , index = 3 */
Expand Down Expand Up @@ -404,7 +404,7 @@ START_TEST(test_002quorumNetwork_0010CreateOnetimeNetworkSuccess)
rtnVal = getQuorumNetworkConfig(&network_config, Index);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* get network data by index , index = 0 */
Expand Down Expand Up @@ -525,12 +525,12 @@ START_TEST(test_002quorumNetwork_0014CreateAllNetworkSuccess)
if (Index == 0)
{
/* create onetime network , store type must be RAM */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
}
else
{
/* create persist network , store type must be FLASH */
rtnVal = BoatQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATQuorumNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
}
/* check index */
ck_assert_int_eq(rtnVal, Index);
Expand Down

0 comments on commit 13c6c67

Please sign in to comment.