Last active
January 16, 2017 19:55
-
-
Save sambatyon/82dc0008b087c3d05c9c960d0c8a4790 to your computer and use it in GitHub Desktop.
Extra test that would have failed with my original version of the patch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST(FutureTest, After4) | |
{ | |
Future<Nothing> witness; | |
Clock::pause(); | |
Future<Nothing>() | |
.then([](const Nothing&) { witness = Nothing(); }) | |
.after(Milliseconds(1), [](const Future<Nothing> f) { f = Nothing(); }); | |
Clock::advance(Seconds(2)); | |
Clock::settle(); | |
AWAIT_READY(witness); | |
EXPECT_SOME(witness); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment