[gnome-bluetooth/wip/hadess/bluetooth-off-turn-off] fixup! tests: Add test for missing row-changed signal
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/bluetooth-off-turn-off] fixup! tests: Add test for missing row-changed signal
- Date: Fri, 10 Dec 2021 18:13:24 +0000 (UTC)
commit a619ef1c130873e76feb80ae18ab26ddc79dd7e2
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 10 14:30:06 2021 +0100
fixup! tests: Add test for missing row-changed signal
tests/integration-test | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/integration-test b/tests/integration-test
index 8f9b132f..a71fcecd 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -164,7 +164,8 @@ class OopTests(dbusmock.DBusTestCase):
model.connect('row-changed', row_changed_cb)
self.wait_for_mainloop()
- self.assertEqual(self.default_adapter, '00:11:22:33:44:55')
+ self.wait_for_condition(lambda: self.default_adapter == '00:11:22:33:44:55')
+ # self.assertEqual(self.default_adapter, '00:11:22:33:44:55')
class Tests(dbusmock.DBusTestCase):
@@ -197,6 +198,7 @@ class Tests(dbusmock.DBusTestCase):
# And run the test with the same name in the OopTests class in a separate process
out = subprocess.run(self.exec_path + ['OopTests.' + test_name], capture_output=True)
self.assertEqual(out.returncode, 0, "Running test " + test_name + " failed:" +
out.stderr.decode('UTF-8') + '\n\n\nSTDOUT:\n' + out.stdout.decode('UTF-8'))
+ print(out.stdout.decode('UTF-8'))
if os.getenv('VALGRIND') != None:
print(out.stderr.decode('UTF-8'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]