Skip to content

Commit c05a9a3

Browse files
fix: revert changes on post-compute
1 parent 0f59f59 commit c05a9a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

post-compute/src/api/worker_api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl WorkerApiClient {
143143
chain_task_id: &str,
144144
exit_cause: &ExitMessage,
145145
) -> Result<(), ReplicateStatusCause> {
146-
let url = format!("{}/compute/post/{chain_task_id}/exit-causes", self.base_url);
146+
let url = format!("{}/compute/post/{chain_task_id}/exit", self.base_url);
147147
match self
148148
.client
149149
.post(&url)
@@ -325,7 +325,7 @@ mod tests {
325325
});
326326

327327
Mock::given(method("POST"))
328-
.and(path(format!("/compute/post/{CHAIN_TASK_ID}/exit-causes")))
328+
.and(path(format!("/compute/post/{CHAIN_TASK_ID}/exit")))
329329
.and(header("Authorization", CHALLENGE))
330330
.and(body_json(&expected_body))
331331
.respond_with(ResponseTemplate::new(200))
@@ -360,7 +360,7 @@ mod tests {
360360
let server_url = mock_server.uri();
361361

362362
Mock::given(method("POST"))
363-
.and(path(format!("/compute/post/{CHAIN_TASK_ID}/exit-causes")))
363+
.and(path(format!("/compute/post/{CHAIN_TASK_ID}/exit")))
364364
.respond_with(ResponseTemplate::new(404))
365365
.expect(1)
366366
.mount(&mock_server)

0 commit comments

Comments
 (0)