diff --git a/services/param/watcher/proxy/watcher_manager.cpp b/services/param/watcher/proxy/watcher_manager.cpp index be8c2d5600f6692689257d2659bb49d571104170..6bac06ec03113da836496862700a2b3d9e3e1168 100644 --- a/services/param/watcher/proxy/watcher_manager.cpp +++ b/services/param/watcher/proxy/watcher_manager.cpp @@ -307,7 +307,9 @@ void WatcherManager::OnStart() bool res = Publish(this); if (!res) { WATCHER_LOGE("WatcherManager Publish failed"); +#ifndef STARTUP_INIT_TEST return; +#endif } if (deathRecipient_ == nullptr) { deathRecipient_ = new DeathRecipient(this);