tests: ensure OpenSSL is initialized prior to test.

This commit is contained in:
David Wilson 2018-03-27 14:56:03 +05:45
parent e28e627f55
commit fccca54068
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class ForkTest(testlib.RouterMixin, unittest2.TestCase):
self.assertNotEqual(context.call(random_random), random_random())
def test_ssl_module_diverges(self):
# Ensure generator state is initialized.
RAND_pseudo_bytes()
context = self.router.fork()
self.assertNotEqual(context.call(RAND_pseudo_bytes),
RAND_pseudo_bytes())