Skip to content

Commit

Permalink
Fix clearing to many lines when test steps are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pdenert committed Oct 31, 2024
1 parent ba4e0d5 commit 6434754
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/patrol_log/lib/src/patrol_log_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ class PatrolLogReader {
final lastEntry = _singleEntries.last;
lastEntry.entries.add(entry);
} else {
if (entry is StepEntry && entry.status == StepEntryStatus.start) {
stepsCounter++;
}
final lastEntry = _singleEntries.last;
lastEntry.entries.add(entry);
}
Expand All @@ -145,6 +142,8 @@ class PatrolLogReader {
if (showTestSteps) {
if (entry.status != StepEntryStatus.start) {
_clearPreviousLine();
} else {
stepsCounter++;
}
log(entry.pretty(number: stepsCounter));
}
Expand Down

0 comments on commit 6434754

Please sign in to comment.