@@ -38,7 +38,7 @@ async fn cleanup_items(
38
38
Ok ( ( ) )
39
39
}
40
40
41
- #[ tokio:: test]
41
+ #[ tokio:: test( flavor = "multi_thread" ) ]
42
42
async fn test_migration_step_0 ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
43
43
let kms_key_id = test_utils:: TEST_KMS_KEY_ID ;
44
44
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>> {
62
62
// When: Execute Step 0 with sortReadValue=2, Then: should error out when reading encrypted items.
63
63
let result = migration_step_0_example ( table_name, & partition_key, sort_keys[ 0 ] , sort_keys[ 2 ] ) . await ;
64
64
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 " ) ) ;
66
66
67
67
// Given: Step 3 has succeeded
68
68
migration_step_3_example ( kms_key_id, table_name, & partition_key, sort_keys[ 3 ] , sort_keys[ 3 ] ) . await ?;
69
69
70
70
// When: Execute Step 0 with sortReadValue=3, Then: should error out
71
71
let result = migration_step_0_example ( table_name, & partition_key, sort_keys[ 0 ] , sort_keys[ 3 ] ) . await ;
72
72
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 " ) ) ;
74
74
75
75
// Cleanup
76
76
for sort_key in & sort_keys {
@@ -80,7 +80,7 @@ async fn test_migration_step_0() -> Result<(), Box<dyn std::error::Error>> {
80
80
Ok ( ( ) )
81
81
}
82
82
83
- #[ tokio:: test]
83
+ #[ tokio:: test( flavor = "multi_thread" ) ]
84
84
async fn test_migration_step_1 ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
85
85
let kms_key_id = test_utils:: TEST_KMS_KEY_ID ;
86
86
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>> {
123
123
Ok ( ( ) )
124
124
}
125
125
126
- #[ tokio:: test]
126
+ #[ tokio:: test( flavor = "multi_thread" ) ]
127
127
async fn test_migration_step_2 ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
128
128
let kms_key_id = test_utils:: TEST_KMS_KEY_ID ;
129
129
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>> {
166
166
Ok ( ( ) )
167
167
}
168
168
169
- #[ tokio:: test]
169
+ #[ tokio:: test( flavor = "multi_thread" ) ]
170
170
async fn test_migration_step_3 ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
171
171
let kms_key_id = test_utils:: TEST_KMS_KEY_ID ;
172
172
let table_name = test_utils:: TEST_DDB_TABLE_NAME ;
0 commit comments