Skip to content

Commit

Permalink
Explain match until first for all regexes behaviour better
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Oct 18, 2023
1 parent 58924d6 commit b5916ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zebra-test/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,9 @@ impl<T> TestChild<T> {
}

/// Checks each line of the child's stdout, until it finds every regex in `unordered_regexes`,
/// and returns all the lines matched by any regex. Prints all stdout lines.
/// and returns all lines matched by any regex, until each regex has been matched at least once.
/// If the output finishes or the command times out before all regexes are matched, returns an error with
/// a list of unmatched regexes. Prints all stdout lines.
///
/// Kills the child on error, or after the configured timeout has elapsed.
/// See [`Self::expect_line_matching_regex_set`] for details.
Expand Down Expand Up @@ -892,7 +894,9 @@ impl<T> TestChild<T> {
}

/// Checks each line of the child's stderr, until it finds every regex in `unordered_regexes`,
/// and returns all the lines matched by any regex. Prints all stderr lines.
/// and returns all lines matched by any regex, until each regex has been matched at least once.
/// If the output finishes or the command times out before all regexes are matched, returns an error with
/// a list of unmatched regexes. Prints all stderr lines.
///
/// Kills the child on error, or after the configured timeout has elapsed.
/// See [`Self::expect_line_matching_regex_set`] for details.
Expand Down

0 comments on commit b5916ad

Please sign in to comment.