Skip to content

Commit

Permalink
fix: typo (#5)
Browse files Browse the repository at this point in the history
I intended to bring over
penumbra-zone/penumbra#4951, but noticed that it
didn't catch all typos. So this is a superset.
  • Loading branch information
SuperFluffy authored Dec 12, 2024
1 parent d93c593 commit 7fc3cbe
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit 7fc3cbe

Please sign in to comment.