Skip to content

Commit d3681bc

Browse files
committed
Fix single thread test
1 parent 3900be5 commit d3681bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ fn search_returns_nothing_for_no_results() {
3131
#[rstest]
3232
fn search_returns_matching_js_function_line_with_one_thread() {
3333
let file_path = common::get_default_fixture_for_file_type_string("js").unwrap();
34-
let query = String::from("thisFunctionDoesNotExist");
34+
let query = String::from("parseQuery");
35+
let expected = vec![common::get_expected_search_result_for_file_type("js")];
3536
let file_type_string = String::from("js");
36-
let expected: Vec<SearchResult> = vec![];
3737
let mut args = common::make_args(query, Some(file_path), Some(file_type_string));
3838
args.threads = Some(NonZero::new(1).unwrap());
3939
assert_eq!(expected, common::do_search(args));

0 commit comments

Comments
 (0)