@@ -63,7 +63,6 @@ class RebootBETestWithoutStop : public ::testing::Test {
63
63
m_rebootbeReponseChannel(&m_db, REBOOT_RESPONSE_NOTIFICATION_CHANNEL),
64
64
m_rebootbe(m_dbus_interface) {
65
65
sigterm_requested = false ;
66
- // TestUtils::clear_tables(m_db);
67
66
68
67
69
68
m_s.addSelectable (&m_rebootbeReponseChannel);
@@ -75,21 +74,6 @@ class RebootBETestWithoutStop : public ::testing::Test {
75
74
}
76
75
virtual ~RebootBETestWithoutStop () = default ;
77
76
78
- gnoi::system::RebootStatusResponse default_not_started_status () {
79
- InitThreadStatus status;
80
- return status.get_response ();
81
- }
82
-
83
- gnoi::system::RebootStatusResponse default_done_status () {
84
- InitThreadStatus status;
85
- // We can't edit the status without it being active.
86
- status.set_start_status ();
87
- status.set_success ();
88
- status.set_inactive ();
89
- return status.get_response ();
90
- }
91
-
92
-
93
77
void start_rebootbe () {
94
78
m_rebootbe_thread =
95
79
std::make_unique<std::thread>(&RebootBE::Start, &m_rebootbe);
@@ -227,26 +211,8 @@ class RebootBEAutoStartTest : public RebootBETest,
227
211
RebootBEAutoStartTest () {
228
212
// force_warm_start_state(GetParam());
229
213
230
- /* if (GetParam()) {
231
- EXPECT_CALL(*m_init_thread, Start())
232
- .WillOnce(Return(swss::StatusCode::SWSS_RC_SUCCESS));
233
- EXPECT_CALL(*m_init_thread, Join()).WillOnce(Return(true));
234
- EXPECT_CALL(*m_init_thread, GetResponse())
235
- .WillOnce(Return(default_running_status()))
236
- .WillRepeatedly(Return(default_done_status()));
237
- } else {
238
- EXPECT_CALL(*m_init_thread, GetResponse())
239
- .WillRepeatedly(Return(default_not_started_status()));
240
- } */
241
-
242
214
start_rebootbe ();
243
215
244
- /* if (GetParam()) {
245
- get_stack_unfrozen_select().notify();
246
- std::this_thread::sleep_for(std::chrono::milliseconds(50));
247
- get_init_done_select().notify();
248
- } */
249
-
250
216
std::this_thread::sleep_for (std::chrono::milliseconds (50 ));
251
217
EXPECT_EQ (m_rebootbe.GetCurrentStatus (), RebootBE::RebManagerStatus::IDLE);
252
218
}
0 commit comments