Sleep in test to ensure changed file timestamp
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m45s

This commit is contained in:
Stephen Seo 2024-09-25 16:23:04 +09:00
parent 83e4a51985
commit 037845e501

View file

@ -847,6 +847,11 @@ int main(void) {
CHECK_TRUE(cache_file_size_0 == cache_file_size_1);
// Change a file used by the template for PATH=/ .
// Sleep first since granularity is by the second.
puts("Sleeping for two seconds to ensure edited file's timestamp has "
"changed...");
sleep(2);
puts("Done sleeping.");
test_file = fopen(test_http_template_html_var_filename2, "w");
ASSERT_TRUE(test_file);