mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-03 21:50:29 +01:00
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:
parent
40828daa8b
commit
fa58832bd1
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue