Allow injection of clock into ExpiringMemoizationSupplier to allow for testing #2727
Labels
P4
package=base
status=will-not-fix
type=other
Miscellaneous activities not covered by other type= labels
To allow testing of ExpiringMemoizationSupplier, a second constructor with
@VisibleForTesting
should be added that allows the injection of a clock.Right now it is being tested by calling
Thread.sleep(x)
but an injection of a clock would be a better way to test, I believe. Thoughts?The text was updated successfully, but these errors were encountered: