diff options
author | Bastien Nocera <hadess@hadess.net> | 2023-04-15 13:05:44 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-04-15 14:10:23 +0200 |
commit | fa58832bd1d5061ea18038d378df65a96b0eaff2 (patch) | |
tree | f4d4cf01c42cd5bd64f0269c719547541c626dcc | |
parent | 40828daa8b27964a05a9ec8765ad30150e80d805 (diff) | |
download | upower-fa58832bd1d5061ea18038d378df65a96b0eaff2.tar.gz |
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.
-rwxr-xr-x | src/linux/integration-test.py | 2 | ||||
-rw-r--r-- | src/meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/integration-test.py b/src/linux/integration-test.py index 14158d5..e0f9ad7 100755 --- a/src/linux/integration-test.py +++ b/src/linux/integration-test.py @@ -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 diff --git a/src/meson.build b/src/meson.build index 477bb0c..acbe4d1 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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 |