summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-02-07 00:54:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-02-07 00:54:30 +0000
commit4ed5455a2ac5574ccbdaaddffa8732e85cf3c139 (patch)
treeec92747533eba64d3b319b8b6522f3e20620ce88
parenta06e74483f825824a943344b128347a854f3402a (diff)
parent4adf6bd5b276d8c742df33400eae43ccf9b29e61 (diff)
downloadplatform_testing-4ed5455a2ac5574ccbdaaddffa8732e85cf3c139.tar.gz
Merge "Add delay after target wifi connection" into main
-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(