Remove @group annotations
Summary: I'm pretty sure that `@group` annotations are useless now... see D9855. Also fixed various other minor issues. Test Plan: Eye-ball it. Reviewers: #blessed_reviewers, epriestley, chad Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin, hach-que Differential Revision: https://secure.phabricator.com/D9859
This commit is contained in:
@@ -27,8 +27,6 @@ use Balanced\Card;
|
||||
* <li>$BALANCED_URL_ROOT If set applies to \Balanced\Settings::$url_root.
|
||||
* <li>$BALANCED_API_KEY If set applies to \Balanced\Settings::$api_key.
|
||||
* </ul>
|
||||
*
|
||||
* @group suite
|
||||
*/
|
||||
class SuiteTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
@@ -784,17 +782,17 @@ class SuiteTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
function testEvents() {
|
||||
$prev_num_events = Marketplace::mine()->events->total();
|
||||
$account = self::_createBuyer();
|
||||
$account->debit(123);
|
||||
$cur_num_events = Marketplace::mine()->events->total();
|
||||
$count = 0;
|
||||
$prev_num_events = Marketplace::mine()->events->total();
|
||||
$account = self::_createBuyer();
|
||||
$account->debit(123);
|
||||
$cur_num_events = Marketplace::mine()->events->total();
|
||||
$count = 0;
|
||||
while ($cur_num_events == $prev_num_events && $count < 10) {
|
||||
printf("waiting for events - %d, %d == %d\n", $count + 1, $cur_num_events, $prev_num_events);
|
||||
sleep(2); // 2 seconds
|
||||
$cur_num_events = Marketplace::mine()->events->total();
|
||||
$count += 1;
|
||||
}
|
||||
$cur_num_events = Marketplace::mine()->events->total();
|
||||
$count += 1;
|
||||
}
|
||||
$this->assertTrue($cur_num_events > $prev_num_events);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user