aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_hot_reload_survives_client_close.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_hot_reload_survives_client_close.py')
-rw-r--r--packages/meshbay-node/tests/test_hot_reload_survives_client_close.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/meshbay-node/tests/test_hot_reload_survives_client_close.py b/packages/meshbay-node/tests/test_hot_reload_survives_client_close.py
index fb9eade..97c14d2 100644
--- a/packages/meshbay-node/tests/test_hot_reload_survives_client_close.py
+++ b/packages/meshbay-node/tests/test_hot_reload_survives_client_close.py
@@ -101,7 +101,7 @@ async def test_hot_loaded_group_finishes_scanning_without_anyone_awaiting_the_re
data_dir = tmp_path / "data"
config_path = tmp_path / "node.toml"
- config_path.write_text(_toml(data_dir, first_dir))
+ config_path.write_text(_toml(data_dir, first_dir), encoding="utf-8")
from meshbay_node.config import load_config
daemon = NodeDaemon(load_config(config_path), config_path=config_path)
@@ -163,7 +163,7 @@ async def test_hot_loaded_group_finishes_scanning_without_anyone_awaiting_the_re
# attach + /api/reload would leave it, then fire the reload exactly
# as ui/app.py does: scheduled, NOT awaited.
config_path.write_text(_toml(data_dir, first_dir,
- second_group_id, second_dir))
+ second_group_id, second_dir), encoding="utf-8")
reload_task = asyncio.ensure_future(daemon._reload_config())
# Stand in for "the browser tab is gone": do something completely
@@ -225,7 +225,7 @@ async def test_group_scoped_ops_404_until_listed_then_succeed(tmp_path):
data_dir = tmp_path / "data2"
config_path = tmp_path / "node2.toml"
- config_path.write_text(_toml(data_dir, first_dir))
+ config_path.write_text(_toml(data_dir, first_dir), encoding="utf-8")
from meshbay_node.config import load_config
daemon = NodeDaemon(load_config(config_path), config_path=config_path)
@@ -282,7 +282,7 @@ async def test_group_scoped_ops_404_until_listed_then_succeed(tmp_path):
# The same file write ops.attach_group does (a raw text append),
# then the same fire-and-forget reload /api/reload now does.
config_path.write_text(_toml(data_dir, first_dir,
- second_group_id, second_dir))
+ second_group_id, second_dir), encoding="utf-8")
reload_task = asyncio.ensure_future(ops.start_reload(daemon._state))
await asyncio.sleep(0.01)