Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #5

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tests/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn test_simple_migration() -> anyhow::Result<()> {
.latest_snapshot()
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

for (i, (key, value)) in kvs.clone().into_iter().enumerate() {
let snapshot = storage.latest_snapshot();
Expand Down Expand Up @@ -217,7 +217,7 @@ async fn test_simple_migration() -> anyhow::Result<()> {
.latest_snapshot()
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

for (i, (key, value)) in kvs.clone().into_iter().enumerate() {
let snapshot = storage.latest_snapshot();
Expand Down Expand Up @@ -252,7 +252,7 @@ async fn test_simple_migration() -> anyhow::Result<()> {
/* read nonexistent keys */
/* ****************************** */
let final_snapshot = storage.latest_snapshot();
let final_root = final_snapshot.root_hash().await.expect("infaillible");
let final_root = final_snapshot.root_hash().await.expect("infallible");

let key = format!("nonexistent_key");
let (some_value, proof) = final_snapshot
Expand Down Expand Up @@ -319,7 +319,7 @@ async fn test_substore_migration() -> anyhow::Result<()> {
.latest_snapshot()
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

for (i, (key, value)) in kvs.clone().into_iter().enumerate() {
tracing::debug!(?key, "checking key-value pair");
Expand Down Expand Up @@ -381,7 +381,7 @@ async fn test_substore_migration() -> anyhow::Result<()> {
let premigration_root_hash = premigration_snapshot
.root_hash()
.await
.expect("infaillible");
.expect("infallible");
drop(premigration_snapshot);

/* ******************************* */
Expand Down Expand Up @@ -433,7 +433,7 @@ async fn test_substore_migration() -> anyhow::Result<()> {
let postmigration_root_hash = postmigration_snapshot
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

assert_ne!(premigration_root_hash, postmigration_root_hash);

Expand Down Expand Up @@ -571,7 +571,7 @@ async fn test_substore_migration() -> anyhow::Result<()> {
.latest_snapshot()
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

for (i, (key, value)) in kvs.clone().into_iter().enumerate() {
tracing::debug!(?key, "checking key-value pair");
Expand Down Expand Up @@ -1034,7 +1034,7 @@ mod proptests {
.latest_snapshot()
.root_hash()
.await
.expect("infaillible");
.expect("infallible");

// Check random keys that should not exist
for op in nonexistence_keys {
Expand Down
Loading