tests: Fix charging test in test_battery_state_guessing

Wait longer for the state guessing to actually kick in, 25 seconds was
too slow and we were getting the old state instead.
This commit is contained in:
Bastien Nocera 2023-04-15 13:05:44 +02:00
parent 40828daa8b
commit fa58832bd1
2 changed files with 2 additions and 2 deletions

View file

@ -631,7 +631,7 @@ class Tests(dbusmock.DBusTestCase):
# self.assertDevs({ 'battery_BAT0': { 'State' : UP_DEVICE_STATE_UNKNOWN }, 'line_power_AC' : {} })
# Charge for a while
for i in range(25):
for i in range(40):
time.sleep(1)
# 1W charge over 1 second
energy_now += 1.0 * 1000000 / 3600

View file

@ -139,7 +139,7 @@ if os_backend == 'linux' and gobject_introspection.found()
args: ut_args,
env: env,
depends: [ libupower_glib_typelib, upowerd ],
timeout: 60,
timeout: 80,
)
endforeach
endif