v0.3.6-pre.005-fix.001

This commit is contained in:
2026-09-01 13:42:34 +02:00
parent 4fdeab4d67
commit ea5f756d17
9 changed files with 164 additions and 48 deletions

View File

@@ -63,14 +63,13 @@ impl super::SignaturePageSource for FakeSource {
},
std::result::Result::Err(_) => {
return std::boxed::Box::pin(async {
return std::result::Result::Err(ksp_core_lib::Error::new(
crate::ERROR_CODE_BACKFILL_DISCOVERY_INVALID,
"test page queue lock poisoned",
));
return std::result::Result::Err(ksp_core_lib::Error::new(crate::ERROR_CODE_BACKFILL_DISCOVERY_INVALID, "test page queue lock poisoned"));
});
},
};
return std::boxed::Box::pin(async move { return std::result::Result::Ok(page); });
return std::boxed::Box::pin(async move {
return std::result::Result::Ok(page);
});
}
}
@@ -223,10 +222,7 @@ async fn pre_005_after_page_bound_is_partial_and_does_not_claim_anchor_completio
std::option::Option::Some(value) => value,
std::option::Option::None => return,
};
let source = FakeSource::new(std::vec![
std::vec![page_entry('7', 70), page_entry('6', 60)],
std::vec![page_entry('5', 50), page_entry('4', 40)],
]);
let source = FakeSource::new(std::vec![std::vec![page_entry('7', 70), page_entry('6', 60)], std::vec![page_entry('5', 50), page_entry('4', 40)],]);
let result = super::discover_with_source(&source, &request).await;
let discovery = match result {
std::result::Result::Ok(value) => value,

View File

@@ -127,18 +127,8 @@ fn pre_005_request_bounds_are_exact_and_explicit_context_is_rejected() {
std::result::Result::Ok(value) => value,
std::result::Result::Err(_) => return,
};
let explicit_with_context = crate::BackfillRequest::new(
job_id,
network,
role,
crate::BackfillCommitment::Confirmed,
explicit_scope,
1,
1,
1,
1,
std::option::Option::Some(10),
);
let explicit_with_context =
crate::BackfillRequest::new(job_id, network, role, crate::BackfillCommitment::Confirmed, explicit_scope, 1, 1, 1, 1, std::option::Option::Some(10));
assert!(explicit_with_context.is_err());
return;
}