Skip to content

Commit

Permalink
rpc-v2/tests: Ensure discarded items are zero always
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Dec 4, 2024
1 parent 1b7acc8 commit 0ddee3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion substrate/client/rpc-spec-v2/src/chain_head/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3228,7 +3228,10 @@ async fn storage_closest_merkle_value() {
.await
.unwrap();
let operation_id = match response {
MethodResponse::Started(started) => started.operation_id,
MethodResponse::Started(started) => {
assert_eq!(started.discarded_items, Some(0));
started.operation_id
},
MethodResponse::LimitReached => panic!("Expected started response"),
};

Expand Down

0 comments on commit 0ddee3a

Please sign in to comment.