mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-08 22:13:20 +00:00
chore: fix typos, enable ignored test
This commit is contained in:
parent
b2f7fae972
commit
4287e64673
@ -561,7 +561,6 @@ fn create_zone_indexer_observer(
|
|||||||
///
|
///
|
||||||
/// TODO: Integration-level park testing (publishing a bad block to force a stall) is a follow-up
|
/// TODO: Integration-level park testing (publishing a bad block to force a stall) is a follow-up
|
||||||
/// needing fault injection support in the test harness.
|
/// needing fault injection support in the test harness.
|
||||||
#[ignore = "requires the full local stack (bedrock + sequencer + indexer)"]
|
|
||||||
#[test]
|
#[test]
|
||||||
async fn indexer_status_rpc_reports_caught_up_with_no_stall() -> anyhow::Result<()> {
|
async fn indexer_status_rpc_reports_caught_up_with_no_stall() -> anyhow::Result<()> {
|
||||||
use indexer_service_rpc::RpcClient as _;
|
use indexer_service_rpc::RpcClient as _;
|
||||||
|
|||||||
@ -42,7 +42,7 @@ enum ChainConsistency {
|
|||||||
Inconsistent(BlockMismatch),
|
Inconsistent(BlockMismatch),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The differing pair behind a [`ChainConsistenty::Inconsistent`]: our stored
|
/// The differing pair behind a [`ChainConsistency::Inconsistent`]: our stored
|
||||||
/// block vs. the block the channel serves at the same id, as `(block_id, hash)`.
|
/// block vs. the block the channel serves at the same id, as `(block_id, hash)`.
|
||||||
struct BlockMismatch {
|
struct BlockMismatch {
|
||||||
ours: (u64, HashType),
|
ours: (u64, HashType),
|
||||||
@ -150,7 +150,7 @@ impl IndexerCore {
|
|||||||
return Ok(ChainConsistency::Inconclusive);
|
return Ok(ChainConsistency::Inconclusive);
|
||||||
};
|
};
|
||||||
|
|
||||||
// copare the block w.r.t hashes
|
// compare the block w.r.t hashes
|
||||||
let comparison_result = if ours.header.hash == channel.header.hash {
|
let comparison_result = if ours.header.hash == channel.header.hash {
|
||||||
ChainConsistency::Consistent
|
ChainConsistency::Consistent
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user