[server/test] fix test_zmq

We were only asserting in a thread, thus ignoring the results.

authorJulien Cristau <julien.cristau@logilab.fr>
changesetae8df3692fba
branchdefault
phasepublic
hiddenno
parent revision#96085e379066 [views,js] remove user_callback feature
child revision#2b44b9893e89 [js] add commonjs support, #2f9a876f06ff [schema] add a unique index on cwuri. Closes #4985752, #1846ad3feae2 [schema] add a unique index on cwuri. Closes #4985752, #8879dd20b8c3 [hooksmanager] remove very old unused module, #675d15123802 [repository] replace session with cnx in a few places, #cfe679b50f11 [dataimport] don't generate metadata which are explicitly specified, #971dc448be4a [schema] add a unique index on cwuri. Closes #4985752, #bbe9af4d4e18 [entity/req] pass the _cw object to cw_instantiate, #8efaf50720bd Remove remote repository-access-through-pyro support, #88793536bc39 bunch of s/session/cnx/, #3480ebc46caf [server/session] Fix typo "meta vs. metas" in describe(), #17ad882a211f [doc] Don't pretend we know cubicweb runs on mysql, #ba0498b8e596 [docstrings] fix project-wide English language mistake
files modified by this revision
server/test/unittest_repository.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1425391096 -3600
# Tue Mar 03 14:58:16 2015 +0100
# Node ID ae8df3692fba46f90d6f964ca3ff3a3719f570e2
# Parent 96085e37906612a30b53f8af8622e561a0e2885d
[server/test] fix test_zmq

We were only asserting in a thread, thus ignoring the results.

diff --git a/server/test/unittest_repository.py b/server/test/unittest_repository.py
@@ -382,10 +382,12 @@
1          zmq_server.run()
2 
3          t2.join(1)
4          t.join(1)
5 
6 +        self.assertTrue(done[0])
7 +
8          if t.isAlive():
9              self.fail('something went wrong, thread still alive')
10 
11      def _zmq_quit(self, done, srv):
12          while not done: