Skip to content

Commit 7c9b69d

Browse files
committed
GH-606: Address PR feedback
1 parent 382f0de commit 7c9b69d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

node/src/blockchain/blockchain_interface/blockchain_interface_web3/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,9 +1060,11 @@ mod tests {
10601060
#[test]
10611061
fn blockchain_interface_retrieve_transactions_start_and_end_blocks_can_be_latest() {
10621062
let port = find_free_port();
1063-
let _test_server = TestServer::start (port, vec![
1064-
br#"[{"jsonrpc":"2.0","id":1,"result":"error"},{"jsonrpc":"2.0","id":2,"result":[{"address":"0xcd6c588e005032dd882cd43bf53a32129be81302","blockHash":"0x1a24b9169cbaec3f6effa1f600b70c7ab9e8e86db44062b49132a4415d26732a","data":"0x0000000000000000000000000000000000000000000000000010000000000000","logIndex":"0x0","removed":false,"topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000003f69f9efd4f2592fd70be8c32ecd9dce71c472fc","0x000000000000000000000000adc1853c7859369639eb414b6342b36288fe6092"],"transactionHash":"0x955cec6ac4f832911ab894ce16aa22c3003f46deff3f7165b32700d2f5ff0681","transactionIndex":"0x0"}]}]"#.to_vec()
1065-
]);
1063+
let contains_error_causing_to_pick_fallback_value = br#"[{"jsonrpc":"2.0","id":1,"result":"error"},{"jsonrpc":"2.0","id":2,"result":[{"address":"0xcd6c588e005032dd882cd43bf53a32129be81302","blockHash":"0x1a24b9169cbaec3f6effa1f600b70c7ab9e8e86db44062b49132a4415d26732a","data":"0x0000000000000000000000000000000000000000000000000010000000000000","logIndex":"0x0","removed":false,"topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000003f69f9efd4f2592fd70be8c32ecd9dce71c472fc","0x000000000000000000000000adc1853c7859369639eb414b6342b36288fe6092"],"transactionHash":"0x955cec6ac4f832911ab894ce16aa22c3003f46deff3f7165b32700d2f5ff0681","transactionIndex":"0x0"}]}]"#;
1064+
let _test_server = TestServer::start(
1065+
port,
1066+
vec![contains_error_causing_to_pick_fallback_value.to_vec()],
1067+
);
10661068
let (event_loop_handle, transport) = Http::with_max_parallel(
10671069
&format!("http://{}:{}", &Ipv4Addr::LOCALHOST, port),
10681070
REQUESTS_IN_PARALLEL,

node/src/node_configurator/configurator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ mod tests {
21332133
#[case("nOnE")]
21342134
#[case("NoNe")]
21352135
#[case("NONE")]
2136-
fn handle_set_configuration_accepts_none_to_unset_start_block(#[case] cfgValue: &str) {
2136+
fn handle_set_configuration_accepts_none_to_unset_start_block(#[case] cfg_value: &str) {
21372137
init_test_logging();
21382138
let test_name = "handle_set_configuration_accepts_none_to_unset_start_block";
21392139
let set_start_block_params_arc = Arc::new(Mutex::new(vec![]));
@@ -2148,7 +2148,7 @@ mod tests {
21482148
subject_addr.try_send(BindMessage { peer_actors }).unwrap();
21492149
let msg = UiSetConfigurationRequest {
21502150
name: "start-block".to_string(),
2151-
value: cfgValue.to_string(),
2151+
value: cfg_value.to_string(),
21522152
};
21532153
let context_id = 4444;
21542154

0 commit comments

Comments
 (0)