@@ -12,39 +12,34 @@ public void OptimizeAll()
1212 {
1313 var r = this . _client . Optimize ( ) ;
1414 r . Shards . Should ( ) . NotBeNull ( ) ;
15- r . Shards . Total . Should ( ) . BeGreaterThan ( 0 ) ;
16- r . Shards . Total . Should ( ) . Be ( r . Shards . Successful ) ;
15+ r . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
1716 }
1817 [ Test ]
1918 public void OptimizeIndex ( )
2019 {
2120 var r = this . _client . Optimize ( o=> o . Index ( ElasticsearchConfiguration . DefaultIndex ) ) ;
2221 r . Shards . Should ( ) . NotBeNull ( ) ;
23- r . Shards . Total . Should ( ) . BeGreaterThan ( 0 ) ;
24- r . Shards . Total . Should ( ) . Be ( r . Shards . Successful ) ;
22+ r . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
2523 }
2624 [ Test ]
2725 public void OptimizeIndices ( )
2826 {
2927 var r = this . _client . Optimize ( o=> o . Indices ( ElasticsearchConfiguration . DefaultIndex , ElasticsearchConfiguration . DefaultIndex + "_clone" ) ) ;
3028 r . Shards . Should ( ) . NotBeNull ( ) ;
31- r . Shards . Total . Should ( ) . BeGreaterThan ( 0 ) ;
32- r . Shards . Total . Should ( ) . Be ( r . Shards . Successful ) ;
29+ r . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
3330 }
3431 [ Test ]
3532 public void OptimizeTyped ( )
3633 {
3734 var r = this . _client . Optimize ( o=> o . Index < ElasticsearchProject > ( ) ) ;
3835 r . Shards . Should ( ) . NotBeNull ( ) ;
39- r . Shards . Total . Should ( ) . BeGreaterThan ( 0 ) ;
40- r . Shards . Total . Should ( ) . Be ( r . Shards . Successful ) ;
36+ r . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
4137 }
4238 public void OptimizeAllWithParameters ( )
4339 {
4440 var r = this . _client . Optimize ( o=> o . MaxNumSegments ( 2 ) ) ;
4541 r . Shards . Should ( ) . NotBeNull ( ) ;
46- r . Shards . Total . Should ( ) . BeGreaterThan ( 0 ) ;
47- r . Shards . Total . Should ( ) . Be ( r . Shards . Successful ) ;
42+ r . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
4843 }
4944
5045 }
0 commit comments