2022-08-26 21:21:08 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Appwrite\Tests;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Allows test methods to be retried if they fail.
|
|
|
|
*
|
|
|
|
* Requires that the test class extends {@see TestCase} and has trait {@see Retryable}.
|
|
|
|
*/
|
|
|
|
#[\Attribute(\Attribute::TARGET_METHOD)]
|
2022-08-30 23:10:15 +12:00
|
|
|
class Retry
|
2022-08-26 21:21:08 +12:00
|
|
|
{
|
2022-08-30 23:10:15 +12:00
|
|
|
public function __construct(protected int $count = 1)
|
2022-08-26 21:21:08 +12:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|