0.3.16-pre.007-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/unit_tests/raw_transaction.rs
|
||||
// version: 14
|
||||
// version: 15
|
||||
|
||||
fn network() -> ksp_store_api::RawNetworkId {
|
||||
return match ksp_store_api::RawNetworkId::new("devnet") {
|
||||
@@ -346,7 +346,7 @@ fn pre_005_existing_full_content_requires_exact_payload_equality_not_hash_only()
|
||||
let network = network();
|
||||
let incoming = raw_transaction(9, &[1, 2, 3, 4], 7);
|
||||
let matching = super::compare_existing_transaction(&network, transaction_row("full"), &incoming);
|
||||
assert!(matching.is_err(), "fixture intentionally differs in slot/content and must conflict");
|
||||
assert!(matches!(matching, std::result::Result::Ok(super::ExistingTransactionMatch::ActiveConflict(_))));
|
||||
let mut exact_row = transaction_row("full");
|
||||
exact_row.signature = vec![9; 64];
|
||||
exact_row.slot_text = "42".to_owned();
|
||||
@@ -362,7 +362,7 @@ fn pre_005_existing_full_content_requires_exact_payload_equality_not_hash_only()
|
||||
same_hash_different_bytes.format_version = 1;
|
||||
same_hash_different_bytes.payload = std::option::Option::Some(vec![9, 9, 9, 9]);
|
||||
let conflict = super::compare_existing_transaction(&network, same_hash_different_bytes, &incoming);
|
||||
assert_eq!(conflict.err().map(|value| return value.kind()), std::option::Option::Some(crate::PostgresBackendErrorKind::Conflict));
|
||||
assert!(matches!(conflict, std::result::Result::Ok(super::ExistingTransactionMatch::ActiveConflict(_))));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs
|
||||
// version: 13
|
||||
// version: 14
|
||||
|
||||
struct ActiveTaskGuard {
|
||||
active: std::sync::Arc<std::sync::atomic::AtomicUsize>,
|
||||
@@ -522,7 +522,7 @@ async fn v0_3_16_pre_007_quarantined_conflict_keeps_worker_running_and_degraded(
|
||||
assert_eq!(snapshot.store_failure_total(), 0);
|
||||
assert!(handle.request_stop());
|
||||
let terminal = handle.wait_terminal().await;
|
||||
assert_eq!(terminal, std::result::Result::Ok(ksp_worker_api::WorkerState::Stopped));
|
||||
assert!(matches!(terminal, std::result::Result::Ok(ksp_worker_api::WorkerState::Stopped)));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user