Bluetooth: use get_device_utc_time for suspend tests
Update to use the new get_device_utc_time method instead of
get_device_time to reflect the recent change of correcting timezone
mismatches.
BUG=b:182654134
TEST=bluetooth_AdapterQuickHealth.AVL
Change-Id: Icb08cbe2b60488b376ab37b24a96d38d1dd6a27c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2757461
Tested-by: Michael Sun <michaelfsun@google.com>
Auto-Submit: Michael Sun <michaelfsun@google.com>
Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Commit-Queue: Michael Sun <michaelfsun@google.com>
diff --git a/server/site_tests/bluetooth_AdapterSRHealth/bluetooth_AdapterSRHealth.py b/server/site_tests/bluetooth_AdapterSRHealth/bluetooth_AdapterSRHealth.py
index a60486f..6e3b92e 100644
--- a/server/site_tests/bluetooth_AdapterSRHealth/bluetooth_AdapterSRHealth.py
+++ b/server/site_tests/bluetooth_AdapterSRHealth/bluetooth_AdapterSRHealth.py
@@ -325,7 +325,7 @@
# Test discovery without setting discovery filter
# ----------------------------------------------------------------------
suspend = self.suspend_async(suspend_time=EXPECT_NO_WAKE_SUSPEND_SEC)
- start_time = self.bluetooth_facade.get_device_time()
+ start_time = self.bluetooth_facade.get_device_utc_time()
# We don't pair to the peer device because we don't want it in the
# allowlist. However, we want an advertising peer in this test
@@ -348,7 +348,7 @@
# Test discovery with discovery filter set
# ----------------------------------------------------------------------
suspend = self.suspend_async(suspend_time=EXPECT_NO_WAKE_SUSPEND_SEC)
- start_time = self.bluetooth_facade.get_device_time()
+ start_time = self.bluetooth_facade.get_device_utc_time()
self.test_set_discovery_filter({'Transport': 'auto'})
self.test_start_discovery()