feat(shell/server): add sleep commands for creating repros

This commit is contained in:
Leonardo de Moura 2017-02-08 10:12:00 -08:00
parent 2c0a5a5120
commit 1fb49baaaa

View file

@ -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")));