diff --git a/toolkit/components/places/tests/unit/test_preventive_maintenance.js b/toolkit/components/places/tests/unit/test_preventive_maintenance.js index 150d26d9bfc..9fb25d5ccd4 100644 --- a/toolkit/components/places/tests/unit/test_preventive_maintenance.js +++ b/toolkit/components/places/tests/unit/test_preventive_maintenance.js @@ -1101,8 +1101,10 @@ let observer = { current_test.setup(); PlacesDBUtils.maintenanceOnIdle(); } - else + else { + os.removeObserver(this, FINISHED_MAINTANANCE_NOTIFICATION_TOPIC); do_test_finished(); + } } } }