mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 10:41:08 +01:00
Changed the postponed unit tests warning message
Summary: Postponed unit tests are not unit tests with problems. The results just haven't arrived yet. Test Plan: Tested accepting a diff with unit status 1, 3, 5 (ok, errors, postponed) Reviewers: jungejason, epriestley Reviewed By: epriestley CC: aran, epriestley, tuomaspelkonen Differential Revision: 969
This commit is contained in:
parent
9155369668
commit
7b8b469da3
1 changed files with 10 additions and 3 deletions
|
@ -158,9 +158,16 @@ final class DifferentialAddCommentView extends AphrontView {
|
|||
DifferentialUnitStatus::UNIT_SKIP => 'Unit Tests Skipped',
|
||||
DifferentialUnitStatus::UNIT_POSTPONED => 'Unit Tests Postponed'
|
||||
);
|
||||
$content =
|
||||
"<p>This diff has Unit Test Problems. Make sure you are OK with them ".
|
||||
"before you accept this diff.</p>";
|
||||
if ($diff->getUnitStatus() == DifferentialUnitStatus::UNIT_POSTPONED) {
|
||||
$content =
|
||||
"<p>This diff has postponed unit tests. The results should be ".
|
||||
"coming in soon. You should probably wait for them before accepting ".
|
||||
"this diff.</p>";
|
||||
} else {
|
||||
$content =
|
||||
"<p>This diff has Unit Test Problems. Make sure you are OK with ".
|
||||
"them before you accept this diff.</p>";
|
||||
}
|
||||
$unit_warning = $this->generateWarningView(
|
||||
$diff->getUnitStatus(),
|
||||
$titles,
|
||||
|
|
Loading…
Reference in a new issue