Skip to content

Commit

Permalink
archive/tests: Adjust testing
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Nov 27, 2024
1 parent c0f5ded commit 39aab7a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions substrate/client/rpc-spec-v2/src/archive/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ async fn archive_storage_hashes_values() {
ArchiveStorageEvent::Storage(StorageResult {
key: key.clone(),
result: StorageResultType::Hash(expected_hash.clone()),
child_trie_key: None,
}),
);

Expand All @@ -410,6 +411,7 @@ async fn archive_storage_hashes_values() {
ArchiveStorageEvent::Storage(StorageResult {
key: key.clone(),
result: StorageResultType::Value(expected_value.clone()),
child_trie_key: None,
}),
);

Expand All @@ -418,6 +420,7 @@ async fn archive_storage_hashes_values() {
ArchiveStorageEvent::Storage(StorageResult {
key: key.clone(),
result: StorageResultType::Hash(expected_hash),
child_trie_key: None,
}),
);

Expand All @@ -426,6 +429,7 @@ async fn archive_storage_hashes_values() {
ArchiveStorageEvent::Storage(StorageResult {
key: key.clone(),
result: StorageResultType::Value(expected_value),
child_trie_key: None,
}),
);

Expand Down Expand Up @@ -650,6 +654,7 @@ async fn archive_storage_iterations() {
ArchiveStorageEvent::Storage(StorageResult {
key: hex_string(b":m"),
result: StorageResultType::Value(hex_string(b"a")),
child_trie_key: None,
})
);

Expand All @@ -658,6 +663,7 @@ async fn archive_storage_iterations() {
ArchiveStorageEvent::Storage(StorageResult {
key: hex_string(b":mo"),
result: StorageResultType::Value(hex_string(b"ab")),
child_trie_key: None,
})
);

Expand All @@ -666,6 +672,7 @@ async fn archive_storage_iterations() {
ArchiveStorageEvent::Storage(StorageResult {
key: hex_string(b":moD"),
result: StorageResultType::Value(hex_string(b"abcmoD")),
child_trie_key: None,
})
);

Expand All @@ -674,6 +681,7 @@ async fn archive_storage_iterations() {
ArchiveStorageEvent::Storage(StorageResult {
key: hex_string(b":moc"),
result: StorageResultType::Value(hex_string(b"abc")),
child_trie_key: None,
})
);

Expand All @@ -682,6 +690,7 @@ async fn archive_storage_iterations() {
ArchiveStorageEvent::Storage(StorageResult {
key: hex_string(b":mock"),
result: StorageResultType::Value(hex_string(b"abcd")),
child_trie_key: None,
})
);

Expand Down

0 comments on commit 39aab7a

Please sign in to comment.