summaryrefslogtreecommitdiff
path: root/uwb/aidl/vts/VtsHalUwbTargetTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'uwb/aidl/vts/VtsHalUwbTargetTest.cpp')
-rw-r--r--uwb/aidl/vts/VtsHalUwbTargetTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp
index edd8dd6608..81d26ba06b 100644
--- a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp
+++ b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp
@@ -68,6 +68,11 @@ class UwbAidl : public testing::TestWithParam<std::string> {
iuwb_ = IUwb::fromBinder(SpAIBinder(AServiceManager_waitForService(GetParam().c_str())));
ASSERT_NE(iuwb_, nullptr);
}
+ virtual void TearDown() override {
+ // Trigger HAL close at end of each test.
+ const auto iuwb_chip = getAnyChip();
+ iuwb_chip->close();
+ }
std::shared_ptr<IUwb> iuwb_;
// TODO (b/197638976): We pick the first chip here. Need to fix this