nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

Fix a couple sleeping tests with freezegun #354

Closed mhahnenberg closed 8 years ago

mhahnenberg commented 8 years ago

Summary: Freezegun allows us to directly manipulate what time our tests think it is. So now we don't have to actually sleep to get the clock the move forward :-D

Test Plan: Run the tests

Reviewers: spang bengotow

grinich commented 8 years ago

mindblown

mhahnenberg commented 8 years ago

Part of #329

spang commented 8 years ago

o.O amazing. I'm for this. LGTM.

bengotow commented 8 years ago

Yess we do this in JS and it's 💯 . Ship it.