From 567c0f019e0a20f3aeb16de46b15ac820c0d3afe Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 22 Apr 2021 09:39:50 -0400 Subject: [PATCH] Test random bytes. --- src/allmydata/test/web/test_logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/web/test_logs.py b/src/allmydata/test/web/test_logs.py index 579e51dbc..89ec7ba42 100644 --- a/src/allmydata/test/web/test_logs.py +++ b/src/allmydata/test/web/test_logs.py @@ -109,7 +109,7 @@ class TestStreamingLogs(unittest.TestCase): def do_a_thing(arguments): pass - do_a_thing(arguments=[u"hello", b"good-day", 123, {"a": 35}, [None]]) + do_a_thing(arguments=[u"hello", b"good-\xff-day", 123, {"a": 35}, [None]]) proto.transport.loseConnection() yield proto.is_closed @@ -117,7 +117,7 @@ class TestStreamingLogs(unittest.TestCase): self.assertEqual(len(messages), 2) self.assertEqual(messages[0]["action_type"], "test:cli:some-exciting-action") self.assertEqual(messages[0]["arguments"], - ["hello", "good-day", 123, {"a": 35}, [None]]) + ["hello", "good-\\xff-day", 123, {"a": 35}, [None]]) self.assertEqual(messages[1]["action_type"], "test:cli:some-exciting-action") self.assertEqual("started", messages[0]["action_status"]) self.assertEqual("succeeded", messages[1]["action_status"])