Skip to content

Commit

Permalink
uncomment out test
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <[email protected]>
  • Loading branch information
koonpeng committed Jun 5, 2024
1 parent 3726a75 commit 7046c5a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/api-server/api_server/rmf_io/test_rmf_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 7046c5a

Please sign in to comment.