Skip to content

Commit

Permalink
test-speed-check: increase timeout lim for lowend
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyiwei authored and pymumu committed Nov 3, 2023
1 parent 3d7db2d commit 2a8d3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cases/test-speed-check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ cache-persist no)""");
std::cout << client.GetResult() << std::endl;
ASSERT_EQ(client.GetAnswerNum(), 2);
EXPECT_EQ(client.GetStatus(), "NOERROR");
EXPECT_LT(client.GetQueryTime(), 20);
EXPECT_LT(client.GetQueryTime(), 40);
EXPECT_EQ(client.GetAnswer()[0].GetName(), "b.com");
EXPECT_EQ(client.GetAnswer()[0].GetTTL(), 600);

ASSERT_TRUE(client.Query("a.com", 60053));
std::cout << client.GetResult() << std::endl;
ASSERT_EQ(client.GetAnswerNum(), 2);
EXPECT_EQ(client.GetStatus(), "NOERROR");
EXPECT_LT(client.GetQueryTime(), 20);
EXPECT_LT(client.GetQueryTime(), 40);
EXPECT_EQ(client.GetAnswer()[0].GetName(), "a.com");
EXPECT_EQ(client.GetAnswer()[0].GetTTL(), 600);
EXPECT_EQ(client.GetAnswer()[0].GetData(), "1.2.3.4");
Expand Down

0 comments on commit 2a8d3af

Please sign in to comment.