Skip to content

Commit d227217

Browse files
author
Andrei Neagu
committed
fixed wrong test
1 parent c94639c commit d227217

File tree

1 file changed

+3
-3
lines changed
  • packages/service-library/tests/long_running_interfaces

1 file changed

+3
-3
lines changed

packages/service-library/tests/long_running_interfaces/test__rpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ async def is_running(self, unique_id: RemoteHandlerName) -> bool:
106106
is_running: bool = data.get("time_remaining", 0) > 0
107107
return is_running
108108

109-
async def get_result(self, unique_id: JobUniqueId) -> ResultModel:
109+
async def get_result(self, unique_id: JobUniqueId) -> str:
110110
if self.result_raises:
111111
msg = "raising as requested"
112112
raise RuntimeError(msg)
113113

114-
return ResultModel(data=f"{unique_id} done")
114+
return f"{unique_id} done"
115115

116116

117117
@pytest.fixture
@@ -169,7 +169,7 @@ async def test_workflow(
169169
await client_rpc_interface.get_status(unique_id) == JobStatus.FINISHED
170170
)
171171

172-
# finally the result
172+
# result should be ready
173173
assert await client_rpc_interface.get_result(unique_id) == ResultModel(
174174
data=f"{unique_id} done"
175175
)

0 commit comments

Comments
 (0)