mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Try to get to the bottom of the sporradic test failures in testColumnExtendedPolicies()
Summary: This test has been failing occasionally in a way that does not reproduce, and only when no one is looking at it. Try to add some extra assertions to maybe get more information. Test Plan: `arc unit` Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D16137
This commit is contained in:
parent
28eb562899
commit
95d95e3fb4
1 changed files with 12 additions and 0 deletions
|
@ -1099,6 +1099,18 @@ final class PhabricatorProjectCoreTestCase extends PhabricatorTestCase {
|
||||||
$column = $this->refreshColumn($user, $column);
|
$column = $this->refreshColumn($user, $column);
|
||||||
$this->assertTrue((bool)$column);
|
$this->assertTrue((bool)$column);
|
||||||
|
|
||||||
|
// This test has been failing randomly in a way that doesn't reproduce
|
||||||
|
// on any host, so add some extra assertions to try to nail it down.
|
||||||
|
$board = $this->refreshProject($board, $user, true);
|
||||||
|
$this->assertTrue((bool)$board);
|
||||||
|
$this->assertTrue($board->isUserMember($user->getPHID()));
|
||||||
|
|
||||||
|
$can_view = PhabricatorPolicyFilter::hasCapability(
|
||||||
|
$user,
|
||||||
|
$column,
|
||||||
|
PhabricatorPolicyCapability::CAN_VIEW);
|
||||||
|
$this->assertTrue($can_view);
|
||||||
|
|
||||||
$can_edit = PhabricatorPolicyFilter::hasCapability(
|
$can_edit = PhabricatorPolicyFilter::hasCapability(
|
||||||
$user,
|
$user,
|
||||||
$column,
|
$column,
|
||||||
|
|
Loading…
Reference in a new issue