def setUp(self):
    """Setup the server."""
    super(GRRFEServerTest, self).setUp()

    self.config_overrider = test_lib.ConfigOverrider({
        # Whitelist test flow.
        "Frontend.well_known_flows": [utils.SmartStr(
            test_lib.WellKnownSessionTest.well_known_session_id.FlowName())],
        # For tests, small pools are ok.
        "Threadpool.size": 10})
    self.config_overrider.Start()

    prefix = "pool-%s" % self._testMethodName
    self.server = flow.FrontEndServer(
        certificate=config_lib.CONFIG["Frontend.certificate"],
        private_key=config_lib.CONFIG["PrivateKeys.server_key"],
        message_expiry_time=self.message_expiry_time,
        threadpool_prefix=prefix)
dataset/ETHPy150Open google/grr/grr/lib/front_end_test.py/GRRFEServerTest.setUp/original