Skip to content

Commit

Permalink
test: update extsort test to make it deterministic
Browse files Browse the repository at this point in the history
we need to sort by more than one column
  • Loading branch information
jqnatividad committed Jan 6, 2025
1 parent 785c982 commit 4ebde70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_extsort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ fn extsort_issue_2391() {

let mut cmd = wrk.command("extsort");
cmd.arg("issue2391-test_ids.csv")
.args(["--select", "tc_id"]);
.args(["--select", "tc_id,pnm"]);

wrk.assert_success(&mut cmd);
let got: Vec<Vec<String>> = wrk.read_stdout(&mut cmd);
let expected = vec![
svec!["pnm", "tc_id", "pc_id"],
svec!["405", "139280", "9730000630075"],
svec!["405", "139280", "9730000630075"],
svec!["138", "139282871", "9730065908379"],
svec!["405", "139281", "9730000630075"],
svec!["131", "139282862", "9730065908379"],
svec!["138", "139282863", "9730065908379"],
Expand All @@ -106,7 +107,6 @@ fn extsort_issue_2391() {
svec!["138", "139282868", "9730065908379"],
svec!["138", "139282869", "9730065908379"],
svec!["138", "139282870", "9730065908379"],
svec!["138", "139282871", "9730065908379"],
svec!["252", "139282", "9730000630075"],
svec!["241", "139283", "9730000630075"],
svec!["272", "139284", "9730000630075"],
Expand Down

0 comments on commit 4ebde70

Please sign in to comment.