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())