Commit fccca540 authored by David Wilson's avatar David Wilson

tests: ensure OpenSSL is initialized prior to test.

parent e28e627f
...@@ -47,6 +47,8 @@ class ForkTest(testlib.RouterMixin, unittest2.TestCase): ...@@ -47,6 +47,8 @@ class ForkTest(testlib.RouterMixin, unittest2.TestCase):
self.assertNotEqual(context.call(random_random), random_random()) self.assertNotEqual(context.call(random_random), random_random())
def test_ssl_module_diverges(self): def test_ssl_module_diverges(self):
# Ensure generator state is initialized.
RAND_pseudo_bytes()
context = self.router.fork() context = self.router.fork()
self.assertNotEqual(context.call(RAND_pseudo_bytes), self.assertNotEqual(context.call(RAND_pseudo_bytes),
RAND_pseudo_bytes()) RAND_pseudo_bytes())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment