Skip to content
Snippets Groups Projects
Commit 1e475ffb authored by Nick Pollard's avatar Nick Pollard Committed by CQ bot account: commit-bot@chromium.org
Browse files

[bt][tests] Enforce ordering of device creation and teardown in tests

Fix a test flake in the Bluetooth integration tests caused by undefined
ordering of behaviors and state in reasoning about available hci and
host devices. This caused some expectations about the availability of
the fake devices under test to be falsified.

We now use the Control interface to wait for specific states of bt-gap,
and ensure that the bt-host addition and removal are strongly ordered
with respect to our test behavior.

This commit also improve failure messages for test predicates.

FLK-106 #done

test: runtests -t bt-host-integration-tests

Change-Id: I7a5278414639b00698dd57d2e3063f5f941f67c7
parent 24227975
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment