File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ mod test {
346
346
map : HashMap :: new ( ) ,
347
347
} ;
348
348
let policy = config. get_replace_datanode_on_failure_policy ( ) ;
349
- assert_eq ! ( policy. is_best_effort( ) , false ) ;
349
+ assert ! ( policy. is_best_effort( ) ) ;
350
350
351
351
// Test disabled policy
352
352
let config = Configuration {
@@ -358,7 +358,7 @@ mod test {
358
358
. collect ( ) ,
359
359
} ;
360
360
let policy = config. get_replace_datanode_on_failure_policy ( ) ;
361
- assert_eq ! ( policy. is_best_effort( ) , false ) ;
361
+ assert ! ( policy. is_best_effort( ) ) ;
362
362
363
363
// Test NEVER policy
364
364
let config = Configuration {
@@ -376,7 +376,7 @@ mod test {
376
376
. collect ( ) ,
377
377
} ;
378
378
let policy = config. get_replace_datanode_on_failure_policy ( ) ;
379
- assert_eq ! ( policy. is_best_effort( ) , true ) ;
379
+ assert ! ( policy. is_best_effort( ) ) ;
380
380
381
381
// Test ALWAYS policy
382
382
let config = Configuration {
@@ -394,6 +394,6 @@ mod test {
394
394
. collect ( ) ,
395
395
} ;
396
396
let policy = config. get_replace_datanode_on_failure_policy ( ) ;
397
- assert_eq ! ( policy. is_best_effort( ) , true ) ;
397
+ assert ! ( policy. is_best_effort( ) ) ;
398
398
}
399
399
}
Original file line number Diff line number Diff line change 1
- // #[cfg(feature = "integration-test")]
1
+ #[ cfg( feature = "integration-test" ) ]
2
2
mod test {
3
3
4
4
use std:: {
You can’t perform that action at this time.
0 commit comments