From 7046c5a2aff92072148552f2149356b21fa61396 Mon Sep 17 00:00:00 2001 From: Teo Koon Peng Date: Wed, 5 Jun 2024 12:10:12 +0800 Subject: [PATCH] uncomment out test Signed-off-by: Teo Koon Peng --- .../api_server/rmf_io/test_rmf_service.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/api-server/api_server/rmf_io/test_rmf_service.py b/packages/api-server/api_server/rmf_io/test_rmf_service.py index ed0267872..dcd97f4d4 100644 --- a/packages/api-server/api_server/rmf_io/test_rmf_service.py +++ b/packages/api-server/api_server/rmf_io/test_rmf_service.py @@ -108,17 +108,17 @@ def tearDownClass(cls) -> None: cls._server_thread.join() cls.loop.close() - # def test_call(self): - # async def run(): - # result = await self.rmf_service.call("hello") - # self.assertEqual("hello", result) + def test_call(self): + async def run(): + result = await self.rmf_service.call("hello") + self.assertEqual("hello", result) - # self.loop.run_until_complete(run()) + self.loop.run_until_complete(run()) - # def test_multiple_calls(self): - # async def run(): - # tasks = [self.rmf_service.call("hello"), self.rmf_service.call("world")] - # results = await asyncio.gather(*tasks) - # self.assertListEqual(["hello", "world"], list(results)) + def test_multiple_calls(self): + async def run(): + tasks = [self.rmf_service.call("hello"), self.rmf_service.call("world")] + results = await asyncio.gather(*tasks) + self.assertListEqual(["hello", "world"], list(results)) - # self.loop.run_until_complete(run()) + self.loop.run_until_complete(run())