Skip to content

Commit

Permalink
Removes invalid difficulty snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Apr 30, 2024
1 parent 97b5db8 commit 40951d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
16 changes: 0 additions & 16 deletions zebra-rpc/src/methods/tests/snapshot/get_block_template_rpcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,6 @@ pub async fn test_responses<State, ReadState>(

snapshot_rpc_getdifficulty_valid("mock", mock_get_difficulty, &settings);

// Now use the populated state

let populated_get_difficulty = get_block_template_rpc.get_difficulty().await;
snapshot_rpc_getdifficulty_invalid("populated", populated_get_difficulty, &settings);

// `z_listunifiedreceivers`

let ua1 = String::from("u1l8xunezsvhq8fgzfl7404m450nwnd76zshscn6nfys7vyz2ywyh4cc5daaq0c7q2su5lqfh23sp7fkf3kt27ve5948mzpfdvckzaect2jtte308mkwlycj2u0eac077wu70vqcetkxf");
Expand Down Expand Up @@ -607,17 +602,6 @@ fn snapshot_rpc_getdifficulty_valid(
});
}

/// Snapshot invalid `getdifficulty` response, using `cargo insta` and JSON serialization.
fn snapshot_rpc_getdifficulty_invalid(
variant: &'static str,
difficulty: Result<f64>,
settings: &insta::Settings,
) {
settings.bind(|| {
insta::assert_json_snapshot!(format!("get_difficulty_invalid_{variant}"), difficulty)
});
}

/// Snapshot `snapshot_rpc_z_listunifiedreceivers` response, using `cargo insta` and JSON serialization.
fn snapshot_rpc_z_listunifiedreceivers(
variant: &'static str,
Expand Down

This file was deleted.

0 comments on commit 40951d5

Please sign in to comment.