Merge "Add the missing unregisterCallback call" am: 7b15fd373e

Change-Id: I77e350b21314f761d0a0fcfa9570ae6b7bad90d3
This commit is contained in:
Treehugger Robot 2020-04-15 22:21:37 +00:00 committed by Automerger Merge Worker
commit 7b59278f31

View file

@ -898,6 +898,8 @@ TEST_P(SensorsHidlTest, NoStaleEvents) {
callback.waitForEvents(sensors, kFiveHundredMs + (5 * maxMinDelay));
activateAllSensors(false);
getEnvironment()->unregisterCallback();
for (const SensorInfo& sensor : sensors) {
// Skip sensors that did not previously report an event
if (lastEventTimestampMap.find(sensor.sensorHandle) == lastEventTimestampMap.end()) {