Merge "Add the missing unregisterCallback call" am: 7b15fd373e
Change-Id: I77e350b21314f761d0a0fcfa9570ae6b7bad90d3
This commit is contained in:
commit
7b59278f31
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue