Fix tuning race condition in broadcast radio VTS
Reset tuner callback in broadcast radio VTS DAB/HD tuning test to
address race condition between tuning operation and the program
info updates before the operation.
Bug: 384062869
Flag: EXEMPT bugfix
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: Ib53c8be9b6b6eca5a2b947e109f3cc0a26ea9ae2
diff --git a/broadcastradio/aidl/vts/src/VtsHalBroadcastradioAidlTargetTest.cpp b/broadcastradio/aidl/vts/src/VtsHalBroadcastradioAidlTargetTest.cpp
index 7e9e458..1427744 100644
--- a/broadcastradio/aidl/vts/src/VtsHalBroadcastradioAidlTargetTest.cpp
+++ b/broadcastradio/aidl/vts/src/VtsHalBroadcastradioAidlTargetTest.cpp
@@ -767,6 +767,7 @@
}
// try tuning
+ mCallback->reset();
auto result = mModule->tune(hdSel);
// expect a failure if it's not supported
@@ -843,7 +844,7 @@
}
// try tuning
-
+ mCallback->reset();
auto result = mModule->tune(sel);
// expect a failure if it's not supported