File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/service-library/tests/long_running_interfaces Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments