From 001c4bf209b8b99a3a7e6d000dd2486f011e40a4 Mon Sep 17 00:00:00 2001 From: More Kuo Date: Wed, 13 Jan 2021 16:22:44 +0800 Subject: [PATCH] BT: Make Bluetooth HCI VTS tests more stable Extend to 600 ms sleep after BluetoothHci->close() to give HAL an ample time to shutdown Test: make, VtsHalBluetoothV1_0TargetTest Bug: 176503623 Change-Id: If6d293167309b9dbcae94cf03199a6c95ecf9836 --- bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp index 0328af1d82..76777dcd73 100644 --- a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp +++ b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp @@ -50,7 +50,7 @@ using ::android::hardware::bluetooth::V1_0::Status; #define WAIT_FOR_HCI_EVENT_TIMEOUT std::chrono::milliseconds(2000) #define WAIT_FOR_SCO_DATA_TIMEOUT std::chrono::milliseconds(1000) #define WAIT_FOR_ACL_DATA_TIMEOUT std::chrono::milliseconds(1000) -#define INTERFACE_CLOSE_DELAY_MS std::chrono::milliseconds(200) +#define INTERFACE_CLOSE_DELAY_MS std::chrono::milliseconds(600) #define COMMAND_HCI_SHOULD_BE_UNKNOWN \ { 0xff, 0x3B, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 }