From 31024ceb4c04291152e38360344fcbdce30a1d02 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 20 Feb 2023 12:44:03 -0500 Subject: [PATCH] reconfigure() is only an issue if it changes something... --- integration/util.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration/util.py b/integration/util.py index 884785deb..d0444cfc8 100644 --- a/integration/util.py +++ b/integration/util.py @@ -755,9 +755,6 @@ async def reconfigure(reactor, request, node: TahoeProcess, :return: ``None`` after the node configuration has been rewritten, the node has been restarted, and the node is ready to provide service. """ - # TODO reconfigure() seems to have issues on Windows. If you need to use it - # there, delete this assert and try to figure out what's going on... - assert not sys.platform.startswith("win") happy, needed, total = params config = node.get_config() @@ -789,6 +786,11 @@ async def reconfigure(reactor, request, node: TahoeProcess, ) if changed: + # TODO reconfigure() seems to have issues on Windows. If you need to + # use it there, delete this assert and try to figure out what's going + # on... + assert not sys.platform.startswith("win") + # restart the node print(f"Restarting {node.node_dir} for ZFEC reconfiguration") await node.restart_async(reactor, request)