chiark / gitweb /
journal: reduce test-journal-send timeout from 10s to 1s
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 18 Jul 2014 10:58:00 +0000 (12:58 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 18 Jul 2014 10:58:00 +0000 (12:58 +0200)
The sleep(10) in test-journal-send is quite aggressive. We need it only
for the journal to get our cgroup information. But even that information
is not vital to the test, so a sleep(1) should be just fine.

src/journal/test-journal-send.c

index 3e986ed99a4d5b00112a6bf8d0d5fc8a090c9873..45eb32760927214800c3c26128065455b6edf1fd 100644 (file)
@@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
                         "N_CPUS=%li", sysconf(_SC_NPROCESSORS_ONLN),
                         NULL);
 
                         "N_CPUS=%li", sysconf(_SC_NPROCESSORS_ONLN),
                         NULL);
 
-        sleep(10);
+        sleep(1);
 
         return 0;
 }
 
         return 0;
 }