Skip to content

Commit

Permalink
Fix single thread test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Jul 25, 2024
1 parent 3900be5 commit d3681bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ fn search_returns_nothing_for_no_results() {
#[rstest]
fn search_returns_matching_js_function_line_with_one_thread() {
let file_path = common::get_default_fixture_for_file_type_string("js").unwrap();
let query = String::from("thisFunctionDoesNotExist");
let query = String::from("parseQuery");
let expected = vec![common::get_expected_search_result_for_file_type("js")];
let file_type_string = String::from("js");
let expected: Vec<SearchResult> = vec![];
let mut args = common::make_args(query, Some(file_path), Some(file_type_string));
args.threads = Some(NonZero::new(1).unwrap());
assert_eq!(expected, common::do_search(args));
Expand Down

0 comments on commit d3681bc

Please sign in to comment.