Skip to content

Commit

Permalink
sleep() shouldnt be used, instead use std::this_thread::sleep_for(std…
Browse files Browse the repository at this point in the history
…::chrono::seconds(6))
  • Loading branch information
braindigitalis committed Nov 16, 2024
1 parent f76f2d1 commit f53a582
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unittest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ Markdown lol \\|\\|spoiler\\|\\| \\~\\~strikethrough\\~\\~ \\`small \\*code\\* b
set_test(HTTPS, hdr1 == "cloudflare" && c->get_status() == 200);
}
);
sleep(6);
std::this_thread::sleep_for(std::chrono::seconds(6));
}
catch (const dpp::exception& e) {
std::cout << e.what() << "\n";
Expand All @@ -2305,7 +2305,7 @@ Markdown lol \\|\\|spoiler\\|\\| \\~\\~strikethrough\\~\\~ \\`small \\*code\\* b
std::string content2 = c2->get_content();
set_test(HTTP, hdr2 == "https://github.com/" && c2->get_status() == 301);
});
sleep(6);
std::this_thread::sleep_for(std::chrono::seconds(6));
}
catch (const dpp::exception& e) {
std::cout << e.what() << "\n";
Expand All @@ -2320,7 +2320,7 @@ Markdown lol \\|\\|spoiler\\|\\| \\~\\~strikethrough\\~\\~ \\`small \\*code\\* b
// Google sets a bunch of cookies when we start accessing it.
set_test(MULTIHEADER, c2->get_status() == 200 && count > 1 && count == count_list);
});
sleep(6);
std::this_thread::sleep_for(std::chrono::seconds(6));
}
catch (const dpp::exception& e) {
std::cout << e.what() << "\n";
Expand Down

0 comments on commit f53a582

Please sign in to comment.