mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
The Clock interface, which basically allows testing in watcher to "time warp" is currently constructed using guice. This change constructs it using a protected method on XPackPlugin which can be overriden in tests. This allows removing the ClockModule. For now, the Clock still needs to be bound in guice, but this at least removes one guice construction, and shows how other things can be overriden for tests. Original commit: elastic/x-pack-elasticsearch@7addaea086