diff options
Diffstat (limited to 'tests/resolv_integration_test.cpp')
| -rw-r--r-- | tests/resolv_integration_test.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/resolv_integration_test.cpp b/tests/resolv_integration_test.cpp index ef2bf1e5..a7cc7a8b 100644 --- a/tests/resolv_integration_test.cpp +++ b/tests/resolv_integration_test.cpp @@ -221,8 +221,14 @@ class ResolverTest : public NetNativeTestBase { // Start the binder thread pool for listening DNS metrics events and receiving death // recipient. ABinderProcess_startThreadPool(); + AllowNetworkInBackground(TEST_UID, true); + AllowNetworkInBackground(TEST_UID2, true); + } + static void TearDownTestSuite() { + AIBinder_DeathRecipient_delete(sResolvDeathRecipient); + AllowNetworkInBackground(TEST_UID, false); + AllowNetworkInBackground(TEST_UID2, false); } - static void TearDownTestSuite() { AIBinder_DeathRecipient_delete(sResolvDeathRecipient); } protected: void SetUp() { @@ -4833,7 +4839,7 @@ TEST_F(ResolverTest, ConnectTlsServerTimeout_ConcurrentQueries) { // DOT_SERVER_UNRESPONSIVE_TIME_MS, DoT queries should timeout. TEST_F(ResolverTest, QueryTlsServerTimeout) { constexpr int DOT_SERVER_UNRESPONSIVE_TIME_MS = 2000; - constexpr int TIMING_TOLERANCE_MS = 200; + constexpr int TIMING_TOLERANCE_MS = 500; constexpr char hostname1[] = "query1.example.com."; const std::vector<DnsRecord> records = { {hostname1, ns_type::ns_t_a, "1.2.3.4"}, |
