diff --git a/src/applications/differential/view/addcomment/DifferentialAddCommentView.php b/src/applications/differential/view/addcomment/DifferentialAddCommentView.php index aab7af07a2..036095c13e 100644 --- a/src/applications/differential/view/addcomment/DifferentialAddCommentView.php +++ b/src/applications/differential/view/addcomment/DifferentialAddCommentView.php @@ -158,9 +158,16 @@ final class DifferentialAddCommentView extends AphrontView { DifferentialUnitStatus::UNIT_SKIP => 'Unit Tests Skipped', DifferentialUnitStatus::UNIT_POSTPONED => 'Unit Tests Postponed' ); - $content = - "
This diff has Unit Test Problems. Make sure you are OK with them ". - "before you accept this diff.
"; + if ($diff->getUnitStatus() == DifferentialUnitStatus::UNIT_POSTPONED) { + $content = + "This diff has postponed unit tests. The results should be ". + "coming in soon. You should probably wait for them before accepting ". + "this diff.
"; + } else { + $content = + "This diff has Unit Test Problems. Make sure you are OK with ". + "them before you accept this diff.
"; + } $unit_warning = $this->generateWarningView( $diff->getUnitStatus(), $titles,