[Debian-ha-commits] [pcs] 02/02: Avoid depending on thread finish order in tests

Valentin Vidic vvidic-guest at moszumanska.debian.org
Mon Jul 25 19:36:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository pcs.

commit 4a66b7bf893a48b07f8c362fe7dd1295dc9b0ecb
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Mon Jul 25 20:59:27 2016 +0200

    Avoid depending on thread finish order in tests
---
 debian/patches/0009-Fix-testsuite.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/patches/0009-Fix-testsuite.patch b/debian/patches/0009-Fix-testsuite.patch
index 61be5a9..cbf3a7f 100644
--- a/debian/patches/0009-Fix-testsuite.patch
+++ b/debian/patches/0009-Fix-testsuite.patch
@@ -314,3 +314,14 @@
        ]],
        $logger.log
      )
+--- a/pcs/test/test_utils.py
++++ b/pcs/test/test_utils.py
+@@ -1797,7 +1797,7 @@
+             wait_seconds=.1
+         )
+ 
+-        self.assertEqual(log, ['first', 'second'])
++        self.assertEqual(sorted(log), ['first', 'second'])
+ 
+     def test_wait_for_slower_workers(self):
+         log = []

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pcs.git



More information about the Debian-HA-Commits mailing list