Skip to content

Commit 3e8f502

Browse files
auto commit
1 parent 969e4e4 commit 3e8f502

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/migration_tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async fn cleanup_items(
3838
Ok(())
3939
}
4040

41-
#[tokio::test]
41+
#[tokio::test(flavor = "multi_thread")]
4242
async fn test_migration_step_0() -> Result<(), Box<dyn std::error::Error>> {
4343
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
4444
let table_name = test_utils::TEST_DDB_TABLE_NAME;
@@ -62,15 +62,15 @@ async fn test_migration_step_0() -> Result<(), Box<dyn std::error::Error>> {
6262
// When: Execute Step 0 with sortReadValue=2, Then: should error out when reading encrypted items.
6363
let result = migration_step_0_example(table_name, &partition_key, sort_keys[0], sort_keys[2]).await;
6464
assert!(result.is_err(), "MigrationStep0 should fail when reading encrypted items");
65-
assert!(result.unwrap_err().to_string().contains("attribute1 mismatch"));
65+
assert!(result.unwrap_err().to_string().contains("attribute1 not found or not a string"));
6666

6767
// Given: Step 3 has succeeded
6868
migration_step_3_example(kms_key_id, table_name, &partition_key, sort_keys[3], sort_keys[3]).await?;
6969

7070
// When: Execute Step 0 with sortReadValue=3, Then: should error out
7171
let result = migration_step_0_example(table_name, &partition_key, sort_keys[0], sort_keys[3]).await;
7272
assert!(result.is_err(), "MigrationStep0 should fail when reading encrypted items");
73-
assert!(result.unwrap_err().to_string().contains("attribute1 mismatch"));
73+
assert!(result.unwrap_err().to_string().contains("attribute1 not found or not a string"));
7474

7575
// Cleanup
7676
for sort_key in &sort_keys {
@@ -80,7 +80,7 @@ async fn test_migration_step_0() -> Result<(), Box<dyn std::error::Error>> {
8080
Ok(())
8181
}
8282

83-
#[tokio::test]
83+
#[tokio::test(flavor = "multi_thread")]
8484
async fn test_migration_step_1() -> Result<(), Box<dyn std::error::Error>> {
8585
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
8686
let table_name = test_utils::TEST_DDB_TABLE_NAME;
@@ -123,7 +123,7 @@ async fn test_migration_step_1() -> Result<(), Box<dyn std::error::Error>> {
123123
Ok(())
124124
}
125125

126-
#[tokio::test]
126+
#[tokio::test(flavor = "multi_thread")]
127127
async fn test_migration_step_2() -> Result<(), Box<dyn std::error::Error>> {
128128
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
129129
let table_name = test_utils::TEST_DDB_TABLE_NAME;
@@ -166,7 +166,7 @@ async fn test_migration_step_2() -> Result<(), Box<dyn std::error::Error>> {
166166
Ok(())
167167
}
168168

169-
#[tokio::test]
169+
#[tokio::test(flavor = "multi_thread")]
170170
async fn test_migration_step_3() -> Result<(), Box<dyn std::error::Error>> {
171171
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
172172
let table_name = test_utils::TEST_DDB_TABLE_NAME;

0 commit comments

Comments
 (0)