LeAudioService: Fix failing unit test
Now when the device is unbonded, we trigger the disconnection if device is not in a disconnected state. Tests need to catch this intent. Fixes the following: [31/39] com.android.bluetooth.le_audio.LeAudioServiceTest#testDeleteStateMachineUnbondEvents: FAILED (237ms) STACKTRACE: expected: 0 but was : 2 at com.android.bluetooth.le_audio.LeAudioServiceTest.verifyConnectionStateIntent(LeAudioServiceTest.java:289) at com.android.bluetooth.le_audio.LeAudioServiceTest.generateConnectionMessageFromNative(LeAudioServiceTest.java:846) at com.android.bluetooth.le_audio.LeAudioServiceTest.testDeleteStateMachineUnbondEvents(LeAudioServiceTest.java:713) Test: atest com.android.bluetooth.le_audio --no-bazel-mode Bug: 249250843 Tag: #feature Change-Id: I1f87ab52bb57af1fe1e55c9d7613b851c013c25c
Loading
Please register or sign in to comment