summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-02-07 01:48:07 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-02-07 01:48:07 +0000
commit71373eefdf300cc14f9f46ca94f0bb8cee38cc85 (patch)
treeacf1087c418b3a02910c4a43755fb9d3b7153d0e
parentede07ec6a5ace942a7bd98b2008475a9db1170d4 (diff)
parent4ed5455a2ac5574ccbdaaddffa8732e85cf3c139 (diff)
downloadplatform_testing-71373eefdf300cc14f9f46ca94f0bb8cee38cc85.tar.gz
Merge "Add delay after target wifi connection" into main am: 4ed5455a2a
Original change: https://android-review.googlesource.com/c/platform/platform_testing/+/2934651 Change-Id: Ic0d3d80f5025385f98efd16c51f88681cad40ae4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--tests/bettertogether/quickstart/performance_test/local_dev_testbed.yml1
-rw-r--r--tests/bettertogether/quickstart/performance_test/nc_constants.py4
-rw-r--r--tests/bettertogether/quickstart/performance_test/quick_start_stress_test.py3
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/bettertogether/quickstart/performance_test/local_dev_testbed.yml b/tests/bettertogether/quickstart/performance_test/local_dev_testbed.yml
index 5b63ca7bd..6c26c45df 100644
--- a/tests/bettertogether/quickstart/performance_test/local_dev_testbed.yml
+++ b/tests/bettertogether/quickstart/performance_test/local_dev_testbed.yml
@@ -3,6 +3,7 @@ x-test-params: &test-params
wifi_ssid: ""
wifi_password: ""
advertising_discovery_medium: 2 # 0 - auto, 2 - BLE_ONLY
+ target_post_wifi_connection_idle_time_sec: 10
x-controllers: &controllers
Controllers:
diff --git a/tests/bettertogether/quickstart/performance_test/nc_constants.py b/tests/bettertogether/quickstart/performance_test/nc_constants.py
index ad396675e..ad14481dc 100644
--- a/tests/bettertogether/quickstart/performance_test/nc_constants.py
+++ b/tests/bettertogether/quickstart/performance_test/nc_constants.py
@@ -52,6 +52,7 @@ SUCCESS_RATE_PRECISION_DIGITS = 1
UNSET_LATENCY = datetime.timedelta.max
UNSET_THROUGHPUT_KBPS = -1.0
MAX_NUM_BUG_REPORT = 5
+TARGET_POST_WIFI_CONNECTION_IDLE_TIME_SEC = 0
@enum.unique
@@ -102,6 +103,9 @@ class TestParameters:
allow_unrooted_device: bool = False
keep_alive_timeout_ms: int = KEEP_ALIVE_TIMEOUT_WIFI_MS
keep_alive_interval_ms: int = KEEP_ALIVE_INTERVAL_WIFI_MS
+ target_post_wifi_connection_idle_time_sec: int = (
+ TARGET_POST_WIFI_CONNECTION_IDLE_TIME_SEC
+ )
@enum.unique
diff --git a/tests/bettertogether/quickstart/performance_test/quick_start_stress_test.py b/tests/bettertogether/quickstart/performance_test/quick_start_stress_test.py
index 0c6b189a5..5cff00e3a 100644
--- a/tests/bettertogether/quickstart/performance_test/quick_start_stress_test.py
+++ b/tests/bettertogether/quickstart/performance_test/quick_start_stress_test.py
@@ -198,6 +198,9 @@ class QuickStartStressTest(nc_base_test.NCBaseTestClass):
)
self._test_result.advertiser_wifi_wlan_expected = True
self._test_result.advertiser_wifi_wlan_latency = advertiser_wlan_latency
+ time.sleep(
+ self.test_parameters.target_post_wifi_connection_idle_time_sec
+ )
# 5. set up 2nd connection
nearby_snippet_2 = nearby_connection_wrapper.NearbyConnectionWrapper(