feat(shell/server): add sleep commands for creating repros
This commit is contained in:
parent
2c0a5a5120
commit
1fb49baaaa
1 changed files with 6 additions and 0 deletions
|
|
@ -245,6 +245,12 @@ void server::handle_request(server::cmd_req const & req) {
|
|||
return handle_complete(req);
|
||||
} else if (command == "info") {
|
||||
return handle_info(req);
|
||||
} else if (command == "sleep") {
|
||||
chrono::milliseconds small_delay(1000);
|
||||
this_thread::sleep_for(small_delay);
|
||||
} else if (command == "long_sleep") {
|
||||
chrono::milliseconds small_delay(10000);
|
||||
this_thread::sleep_for(small_delay);
|
||||
}
|
||||
|
||||
send_msg(cmd_res(req.m_seq_num, std::string("unknown command")));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue