Commit 85a8672b authored by TJ Yin's avatar TJ Yin Committed by Facebook GitHub Bot

make time based unit-test less flaky by waiting longer

Reviewed By: yfeldblum, andriigrynenko

Differential Revision: D22965140

fbshipit-source-id: 8f9996ccc28aff621879774e901b0c75e8c62883
parent f2d225e4
...@@ -1040,7 +1040,7 @@ TEST(Singleton, ShutdownTimer) { ...@@ -1040,7 +1040,7 @@ TEST(Singleton, ShutdownTimer) {
vault.registrationComplete(); vault.registrationComplete();
vault.setShutdownTimeout(10ms); vault.setShutdownTimeout(10ms);
SingletonObject::try_get()->shutdownDuration = 1s; SingletonObject::try_get()->shutdownDuration = 10s;
EXPECT_DEATH( EXPECT_DEATH(
[&]() { [&]() {
vault.startShutdownTimer(); vault.startShutdownTimer();
...@@ -1048,7 +1048,7 @@ TEST(Singleton, ShutdownTimer) { ...@@ -1048,7 +1048,7 @@ TEST(Singleton, ShutdownTimer) {
}(), }(),
"Failed to complete shutdown within 10ms."); "Failed to complete shutdown within 10ms.");
vault.setShutdownTimeout(1s); vault.setShutdownTimeout(10s);
SingletonObject::try_get()->shutdownDuration = 10ms; SingletonObject::try_get()->shutdownDuration = 10ms;
vault.startShutdownTimer(); vault.startShutdownTimer();
vault.destroyInstances(); vault.destroyInstances();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment