From 00ffb6c77e28ce24c1ca0025894586db58ab8437 Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Thu, 21 May 2020 19:34:09 -0700 Subject: [PATCH] Libstatspull: decrease default pull timeout to 2s Decrease the default pull timeout to 2 seconds. Test: atest LibStatsPullTests Test: atest libstatspull_test Bug: 154056912 Change-Id: I8f7660de64e8c74a8c7ce7d252369c0456895e3b --- libstats/pull/stats_pull_atom_callback.cpp | 2 +- libstats/pull/tests/pull_atom_metadata_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstats/pull/stats_pull_atom_callback.cpp b/libstats/pull/stats_pull_atom_callback.cpp index 2d184bd2d..0b9dd5292 100644 --- a/libstats/pull/stats_pull_atom_callback.cpp +++ b/libstats/pull/stats_pull_atom_callback.cpp @@ -47,7 +47,7 @@ AStatsEvent* AStatsEventList_addStatsEvent(AStatsEventList* pull_data) { } static const int64_t DEFAULT_COOL_DOWN_MILLIS = 1000LL; // 1 second. -static const int64_t DEFAULT_TIMEOUT_MILLIS = 10000LL; // 10 seconds. +static const int64_t DEFAULT_TIMEOUT_MILLIS = 2000LL; // 2 seconds. struct AStatsManager_PullAtomMetadata { int64_t cool_down_millis; diff --git a/libstats/pull/tests/pull_atom_metadata_test.cpp b/libstats/pull/tests/pull_atom_metadata_test.cpp index cf1930357..abc8e47af 100644 --- a/libstats/pull/tests/pull_atom_metadata_test.cpp +++ b/libstats/pull/tests/pull_atom_metadata_test.cpp @@ -21,7 +21,7 @@ namespace { static const int64_t DEFAULT_COOL_DOWN_MILLIS = 1000LL; // 1 second. -static const int64_t DEFAULT_TIMEOUT_MILLIS = 10000LL; // 10 seconds. +static const int64_t DEFAULT_TIMEOUT_MILLIS = 2000LL; // 2 seconds. } // anonymous namespace