Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft committed Jan 10, 2025
1 parent 2907242 commit ed6a50e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 8 additions & 4 deletions host/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,14 @@ mod tests {
let result = actor.handle_system_pause().await;

// Verify error contains all accumulated errors
assert!(matches!(
result,
Err(HostError::Core(RaikoError::FeatureNotSupportedError(..)))
));
#[cfg(not(feature = "risc0"))]
assert!(
matches!(
result,
Err(HostError::Core(RaikoError::FeatureNotSupportedError(..)))
),
"Unexpected result: {result:?}",
);
assert!(good_running_task_token.is_cancelled());
assert!(good_aggregation_task_token.is_cancelled());
assert!(actor.pending_tasks.lock().await.is_empty());
Expand Down
8 changes: 4 additions & 4 deletions host/tests/test/cancel_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ pub async fn test_v2_mainnet_native_cancel() {
status,
api::v2::Status::Ok {
data: api::v2::ProofResponse::Status {
status: TaskStatus::Registered,
status: TaskStatus::Registered | TaskStatus::WorkInProgress,
..
}
}
),
"status: {status:?}"
"unexpected status: {status:?}"
);

let status: api::v2::CancelStatus = client
Expand Down Expand Up @@ -91,12 +91,12 @@ pub async fn test_v2_mainnet_native_cancel_then_register() {
status,
api::v2::Status::Ok {
data: api::v2::ProofResponse::Status {
status: TaskStatus::Registered,
status: TaskStatus::Registered | TaskStatus::WorkInProgress,
..
}
}
),
"status: {status:?}"
"unexpected status: {status:?}"
);

let status: api::v2::CancelStatus = client
Expand Down
2 changes: 1 addition & 1 deletion provers/sp1/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ mod test {
let client = ProverClient::new();
let stdin = SP1Stdin::new();
let (pk, vk) = client.setup(TEST_ELF);
let proof = client.prove(&pk, stdin).run().unwrap();
let proof = client.prove(&pk, &stdin).run().unwrap();
client
.verify(&proof, &vk)
.expect("Sp1: verification failed");
Expand Down

0 comments on commit ed6a50e

Please sign in to comment.