New dependency

Andrew Wilkins andrew.wilkins at canonical.com
Wed Aug 5 02:00:47 UTC 2015


On Wed, Aug 5, 2015 at 9:47 AM Tim Penhey <tim.penhey at canonical.com> wrote:

> On 04/08/15 17:54, Andrew Wilkins wrote:
> > Hi,
> >
> > I'd like to add a new third-party dependency for testing:
> > github.com/benbjohnson/clock <http://github.com/benbjohnson/clock>. I
> > intend to use this for testing forthcoming retry scheduling logic in the
> > storage provisioner. Any objections?
>
> I now that William has been working on mocking time a different way for
> some of the leadership tests.
>
> We should make sure we have consistency across this.
>
> Tim
>

The approach William has taken is actually pretty much identical to what
I'm doing. The primary difference is that he has implemented a mock Clock
himself. The mock does not implement After(), which I do need in my code. I
can implement this myself, but I'd rather we just used something off the
shelf.

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150805/19a2b928/attachment.html>


More information about the Juju-dev mailing list