mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
API Key expiration value has millisecond precision as we use {@link Instant#toEpoqueMilli()} when creating the API key document. It could often happen that `Instant.now()` Instant in the testCreateApiKey was close enough to the ApiKeyService's `clock.instant()` Instant, when the nanos were removed from the latter ( due to the call to `toEpoqueMilli()` ) the result of comparing these two Instants was a few nanos short of a 7 days. Resolves: #47958