def METHOD_NAME(self, reactor: MemoryReactor, clock: Clock) -> HomeServer:
    config = self.default_config()
    # This isn't a real configuration option but is used to provide the main
    # homeserver and worker homeserver different options.
    main_replication_secret = config.pop("main_replication_secret", None)
    if main_replication_secret:
        config["worker_replication_secret"] = main_replication_secret
    return self.setup_test_homeserver(config=config)