From 0fed02bf21c32e531ea7491d07e006dc1d17e3b3 Mon Sep 17 00:00:00 2001 From: Madhu Kanoor Date: Tue, 12 Sep 2023 14:19:48 -0400 Subject: [PATCH] refactor: removed unused options (#578) * extra_payload * str_enable Are not used anywhere in the tests --- tests/sources/range.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/sources/range.py b/tests/sources/range.py index 4502eaf8..b9d5abf7 100644 --- a/tests/sources/range.py +++ b/tests/sources/range.py @@ -18,13 +18,9 @@ async def main(queue: asyncio.Queue, args: Dict[str, Any]): delay = args.get("delay", 0) - str_enable = args.get("str_enable", False) - extra_payload = args.get("extra_payload", None) for i in range(int(args["limit"])): - payload = {"i": f"{i}"} if str_enable else {"i": i} - if extra_payload: - payload.update({"extra_payload": extra_payload}) + payload = {"i": i} await queue.put(payload) await asyncio.sleep(delay)