mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
test-sleep: reduce timeout
The timeout was raised during review and I wrote that I lowered it, but forgot
to actually commit the diff. Follow-up for 31f62bdd79
.
This commit is contained in:
parent
aaa448a5dc
commit
1552670852
@ -131,10 +131,11 @@ TEST(fetch_batteries_capacity_by_name) {
|
||||
log_info("Battery %s: capacity = %i", name, get_capacity_by_name(capacity, name));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 5; i++) {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
usec_t interval;
|
||||
|
||||
sleep(1);
|
||||
if (i > 0)
|
||||
sleep(1);
|
||||
|
||||
r = get_total_suspend_interval(capacity, &interval);
|
||||
assert_se(r >= 0 || r == -ENOENT);
|
||||
|
Loading…
Reference in New Issue
Block a user