Merge "Add the missing unregisterCallback call"

This commit is contained in:
Treehugger Robot
2020-04-15 22:07:27 +00:00
committed by Gerrit Code Review

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()) {