viff

changeset 1177:a1304b0072d4

RuntimeTestCase must wait on the runtime results too. Otherwise any exceptions raised in the protocol execution wont be propagated correctly, and Trial might believe that the test case has succeeded when it hasn't.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 14 May 2009 10:47:12 +0200
parents e86a007bddbd
children e89fb02c5e3d
files viff/test/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/viff/test/util.py	Thu May 07 11:09:47 2009 +0200
     1.2 +++ b/viff/test/util.py	Thu May 14 10:47:12 2009 +0200
     1.3 @@ -77,9 +77,9 @@
     1.4              except AttributeError:
     1.5                  return failure
     1.6  
     1.7 -        result = gatherResults(self.runtimes)
     1.8 +        result = gatherResults(self.runtimes + self.close_sentinels)
     1.9          result.addErrback(unpack)
    1.10 -        return gatherResults(self.close_sentinels)
    1.11 +        return result
    1.12  
    1.13      wrapper.func_name = method.func_name
    1.14      return wrapper