Slow down restart rate for starterd
1 second delay is too short and results in cascading failures. Shutdown
isn't actually RT, so it can take down other parts of the system.
Change-Id: Iea364e05ef4547cb2a9755efbf98fb8d488d2f9d
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter_test.cc b/aos/starter/starter_test.cc
index dea27e9..51f9f02 100644
--- a/aos/starter/starter_test.cc
+++ b/aos/starter/starter_test.cc
@@ -152,7 +152,7 @@
watcher_loop.Exit();
FAIL();
})
- ->Setup(watcher_loop.monotonic_now() + std::chrono::seconds(7));
+ ->Setup(watcher_loop.monotonic_now() + std::chrono::seconds(11));
int test_stage = 0;
uint64_t id;
@@ -169,6 +169,7 @@
case 0: {
if (app_status->has_state() &&
app_status->state() == aos::starter::State::RUNNING) {
+ LOG(INFO) << "Ping is running";
test_stage = 1;
ASSERT_TRUE(app_status->has_pid());
ASSERT_TRUE(kill(app_status->pid(), SIGINT) != -1);
@@ -182,6 +183,7 @@
if (app_status->has_state() &&
app_status->state() == aos::starter::State::RUNNING &&
app_status->has_id() && app_status->id() != id) {
+ LOG(INFO) << "Ping restarted";
watcher_loop.Exit();
SUCCEED();
}