aboutsummaryrefslogtreecommitdiff
path: root/tests/resolv_integration_test.cpp
diff options
context:
space:
mode:
authorGeorge Zacharia <george.zcharia@gmail.com>2024-07-04 12:11:39 +0530
committerGeorge Zacharia <george.zcharia@gmail.com>2024-07-04 12:11:39 +0530
commit5d39b58c917af54cc5364cb54a91a2fbb35c0684 (patch)
tree785644acbdb68cb56f5935928fd3ccd8cc5602cc /tests/resolv_integration_test.cpp
parent31fe821335034ba4fb29953fe77395c804e51a33 (diff)
parentfe72ac15ad7f0428e662415458cc51e03746e33e (diff)
Merge tag 'android-14.0.0_r50' of https://android.googlesource.com/platform/packages/modules/DnsResolver into u14.0HEADu14.0
Android 14.0.0 Release 50 (AP2A.240605.024)
Diffstat (limited to 'tests/resolv_integration_test.cpp')
-rw-r--r--tests/resolv_integration_test.cpp10
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"},