Skip to content

Commit d84308b

Browse files
committed
fix: tests.
1 parent fb88f6d commit d84308b

File tree

12 files changed

+28
-20
lines changed

12 files changed

+28
-20
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checks/migrator/checks/sketchpad/src/example.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod test {
66
use mtma_node_null_core::config::Config as MtmaNullConfig;
77
use mtma_node_test_types::prelude::Prelude;
88

9+
#[ignore] // this is just an example, so it's not expected to pass
910
#[tokio::test]
1011
#[tracing_test::traced_test]
1112
async fn test_global_storage_includes_null() -> Result<(), anyhow::Error> {

checks/migrator/util/types/src/check.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use mtma_node_test_types::prelude::Prelude;
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum CheckError {
8-
#[error("failed to run prelude: {0}")]
8+
#[error("checked migration encountered an error while running prelude: {0}")]
99
Prelude(#[source] Box<dyn std::error::Error + Send + Sync>),
10-
#[error("failed to run migration: {0}")]
10+
#[error("checked migration encountered an error while running migration: {0}")]
1111
Migration(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("failed to satisfy criteria: {0}")]
12+
#[error("checked migration encountered an error while satisfying criteria: {0}")]
1313
Criteria(#[source] Box<dyn std::error::Error + Send + Sync>),
14-
#[error("internal error: {0}")]
14+
#[error("checked migration encountered an internal error: {0}")]
1515
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1616
}
1717

checks/migrator/util/types/src/criterion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl MovementMigratorClient {
4242
/// Errors thrown when working with the [Config].
4343
#[derive(Debug, thiserror::Error)]
4444
pub enum CriterionError {
45-
#[error("failed to build from config: {0}")]
45+
#[error("criterion was not satisfied: {0}")]
4646
Unsatisfied(#[source] Box<dyn std::error::Error + Send + Sync>),
4747
}
4848

checks/node/util/types/src/check.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use mtma_node_types::migration::Migrationish;
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum CheckError {
8-
#[error("failed to run prelude: {0}")]
8+
#[error("check encountered an error while running prelude: {0}")]
99
Prelude(#[source] Box<dyn std::error::Error + Send + Sync>),
10-
#[error("failed to run migration: {0}")]
10+
#[error("check encountered an error while running migration: {0}")]
1111
Migration(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("failed to satisfy criteria: {0}")]
12+
#[error("check encountered an error while satisfying criteria: {0}")]
1313
Criteria(#[source] Box<dyn std::error::Error + Send + Sync>),
14-
#[error("internal error: {0}")]
14+
#[error("check encountered an internal error: {0}")]
1515
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1616
}
1717

checks/node/util/types/src/criterion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ pub use mtma_node_types::executor::movement_executor::MovementNode;
77
/// Errors thrown when working with the [Config].
88
#[derive(Debug, thiserror::Error)]
99
pub enum CriterionError {
10-
#[error("the criterion is unsatisfied: {0}")]
10+
#[error("the criterion was not satisfied: {0}")]
1111
Unsatisfied(#[source] Box<dyn std::error::Error + Send + Sync>),
12-
#[error("internal error: {0}")]
12+
#[error("criterion encountered an internal error: {0}")]
1313
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
1414
}
1515

checks/node/util/types/src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DEFAULT_ROUND: u64 = 0;
1717
/// Errors thrown when working with the [Config].
1818
#[derive(Debug, thiserror::Error)]
1919
pub enum PreludeError {
20-
#[error("internal error: {0}")]
20+
#[error("prelude encountered an internal error: {0}")]
2121
Internal(#[source] Box<dyn std::error::Error + Send + Sync>),
2222
}
2323

migration/core/migrator/mtma-null/src/migrate/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum MigrateConfigError {
8-
#[error("failed to build from config: {0}")]
8+
#[error("failed to build mtma-null migrator from config: {0}")]
99
Build(#[source] Box<dyn std::error::Error + Send + Sync>),
1010
}
1111

migration/core/migrator/mtma-null/src/migrate/migrate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn copy_dir_recursive(src: &Path, dst: &Path) -> std::io::Result<()> {
3333
/// Errors thrown during the migration.
3434
#[derive(Debug, thiserror::Error)]
3535
pub enum MigrateError {
36-
#[error("failed to migrate: {0}")]
36+
#[error("mtma-null migrator failed to migrate: {0}")]
3737
Migrate(#[source] Box<dyn std::error::Error + Send + Sync>),
3838
}
3939

migration/core/mtma/src/migrate/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
55
/// Errors thrown when working with the [Config].
66
#[derive(Debug, thiserror::Error)]
77
pub enum MigrateConfigError {
8-
#[error("failed to build from config: {0}")]
8+
#[error("mtma failed to build from config: {0}")]
99
Build(#[source] Box<dyn std::error::Error + Send + Sync>),
1010
}
1111

0 commit comments

Comments
 (0)