@@ -2736,7 +2736,7 @@ mod tests {
2736
2736
let error = result. unwrap ( ) . unwrap_err ( ) ;
2737
2737
2738
2738
// Check that the error contains the expected strings
2739
- let error_str = format ! ( "{:?}" , error) ;
2739
+ let error_str = error. to_string ( ) ;
2740
2740
assert ! (
2741
2741
error_str. contains( "recording failed" ) ,
2742
2742
"Error should contain 'recording failed': {}" ,
@@ -3034,14 +3034,14 @@ mod tests {
3034
3034
. unwrap ( )
3035
3035
. unwrap_err ( ) ;
3036
3036
// Check that the error contains the expected strings
3037
- let error_str = format ! ( "{:?}" , result_error) ;
3037
+ let error_str = result_error. to_string ( ) ;
3038
3038
assert ! (
3039
3039
error_str. contains( "recording failed" ) ,
3040
3040
"Error should contain 'recording failed': {}" ,
3041
3041
error_str
3042
3042
) ;
3043
3043
assert ! (
3044
- error_str. contains( "torch operator failed " ) ,
3044
+ error_str. contains( "torch operator error " ) ,
3045
3045
"Error should contain 'torch operator failed': {}" ,
3046
3046
error_str
3047
3047
) ;
@@ -3096,7 +3096,7 @@ mod tests {
3096
3096
. unwrap ( )
3097
3097
. unwrap_err ( ) ;
3098
3098
// Check that the error contains the expected strings
3099
- let error_str = format ! ( "{:?}" , result_error) ;
3099
+ let error_str = result_error. to_string ( ) ;
3100
3100
assert ! (
3101
3101
error_str. contains( "Computation depended on an input that failed" ) ,
3102
3102
"Error should contain dependency message: {}" ,
@@ -3118,7 +3118,7 @@ mod tests {
3118
3118
3 . into ( ) ,
3119
3119
captured_ref,
3120
3120
& mut test_setup. controller_rx ,
3121
- "RecordingFailed " ,
3121
+ "recording failed " ,
3122
3122
)
3123
3123
. await ;
3124
3124
@@ -3477,7 +3477,7 @@ mod tests {
3477
3477
. unwrap_err ( ) ;
3478
3478
3479
3479
// Check that the error contains the expected strings
3480
- let error_str = format ! ( "{:?}" , result_error) ;
3480
+ let error_str = result_error. to_string ( ) ;
3481
3481
assert ! (
3482
3482
error_str. contains( "Computation depended on an input that failed" ) ,
3483
3483
"Error should contain dependency message: {}" ,
@@ -3486,7 +3486,7 @@ mod tests {
3486
3486
3487
3487
// Since we're checking for pointer equality in the original code, we need to ensure
3488
3488
// the error is propagated correctly. We can check that the original error message is contained.
3489
- let input_error_str = format ! ( "{:?}" , input_error) ;
3489
+ let input_error_str = input_error. to_string ( ) ;
3490
3490
assert ! (
3491
3491
error_str. contains( & input_error_str) ,
3492
3492
"Error should contain the original error: {}" ,
@@ -4232,7 +4232,7 @@ mod tests {
4232
4232
. unwrap ( )
4233
4233
. unwrap_err ( ) ;
4234
4234
// Check that the error contains the expected string
4235
- let error_str = format ! ( "{:?}" , real_result_err) ;
4235
+ let error_str = real_result_err. to_string ( ) ;
4236
4236
assert ! (
4237
4237
error_str. contains( "recording failed" ) ,
4238
4238
"Error should contain 'recording failed': {}" ,
@@ -4309,7 +4309,7 @@ mod tests {
4309
4309
. unwrap ( )
4310
4310
. unwrap_err ( ) ;
4311
4311
// Check that the error contains the expected strings
4312
- let error_str = format ! ( "{:?}" , real_result_err) ;
4312
+ let error_str = real_result_err. to_string ( ) ;
4313
4313
assert ! (
4314
4314
error_str. contains( "Computation depended on an input that failed" ) ,
4315
4315
"Error should contain dependency message: {}" ,
0 commit comments