Sleep in test to ensure changed file timestamp
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m45s
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m45s
This commit is contained in:
parent
83e4a51985
commit
037845e501
1 changed files with 5 additions and 0 deletions
|
@ -847,6 +847,11 @@ int main(void) {
|
||||||
CHECK_TRUE(cache_file_size_0 == cache_file_size_1);
|
CHECK_TRUE(cache_file_size_0 == cache_file_size_1);
|
||||||
|
|
||||||
// Change a file used by the template for PATH=/ .
|
// 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");
|
test_file = fopen(test_http_template_html_var_filename2, "w");
|
||||||
ASSERT_TRUE(test_file);
|
ASSERT_TRUE(test_file);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue