update session finite state machine & add tcp init -> opening test case
This commit is contained in:
4
deps/dablooms/test/gtest_dablooms.cpp
vendored
4
deps/dablooms/test/gtest_dablooms.cpp
vendored
@@ -25,7 +25,7 @@ struct config
|
||||
.enable = 1,
|
||||
.capacity = 1000000,
|
||||
.error_rate = 0.00001,
|
||||
.expiry_time = 10,
|
||||
.expiry_time = 3,
|
||||
};
|
||||
|
||||
struct packet_idetify idetify = {
|
||||
@@ -47,7 +47,7 @@ TEST(DABLOOMS, TEST)
|
||||
EXPECT_TRUE(expiry_dablooms_search(handle, (const char *)&idetify, sizeof(idetify), time(NULL)) != 1); // no exist
|
||||
EXPECT_TRUE(expiry_dablooms_add(handle, (const char *)&idetify, sizeof(idetify), time(NULL)) == 0); // add
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if (i < config.expiry_time)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user