From 2a8d3aff61a07940d5535ecc946857953384d5e8 Mon Sep 17 00:00:00 2001 From: totoro Date: Fri, 3 Nov 2023 18:44:37 +0800 Subject: [PATCH] test-speed-check: increase timeout lim for lowend --- test/cases/test-speed-check.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cases/test-speed-check.cc b/test/cases/test-speed-check.cc index b62a82d887..47323a320b 100644 --- a/test/cases/test-speed-check.cc +++ b/test/cases/test-speed-check.cc @@ -99,7 +99,7 @@ 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); @@ -107,7 +107,7 @@ 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(), "a.com"); EXPECT_EQ(client.GetAnswer()[0].GetTTL(), 600); EXPECT_EQ(client.GetAnswer()[0].GetData(), "1.2.3.4");