File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -912,7 +912,7 @@ mod tests {
912
912
assert_eq ! ( positions, & [ 4 ] ) ; //< as opposed to 3 if we had a position length of 1.
913
913
}
914
914
915
- //ISSUE-#2078 - writing and searching shall throw error when the field tokenizer is missing
915
+ // ISSUE-#2078 - writing and searching shall throw error when the field tokenizer is missing
916
916
#[ test]
917
917
fn test_show_error_when_tokenizer_not_registered ( ) {
918
918
let text_field_indexing = TextFieldIndexing :: default ( )
@@ -940,9 +940,7 @@ mod tests {
940
940
let title = schema. get_field ( "title" ) . unwrap ( ) ;
941
941
let mut document = Document :: default ( ) ;
942
942
document. add_text ( title, "The Old Man and the Sea" ) ;
943
-
944
943
index_writer. add_document ( document) . unwrap ( ) ;
945
-
946
944
match index_writer. commit ( ) {
947
945
Ok ( _) => panic ! ( "Commit should have failed" ) ,
948
946
Err ( e) => assert_eq ! (
You can’t perform that action at this time.
0 commit comments