Update unit tests to allow skip if AWS API flood
on Github a lot of API tests will fail with "T001" flooding, so we just skip them
This commit is contained in:
@@ -954,6 +954,11 @@ final class AmazonIncentivesTest extends TestCase
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
$error = AmazonIncentives\Exceptions\AmazonErrors::decodeExceptionMessage($e->getMessage());
|
||||
if ($error['code'] == "T001") {
|
||||
$this->markTestSkipped(
|
||||
"Skipped because of flooding"
|
||||
);
|
||||
}
|
||||
$this->assertEquals(
|
||||
[
|
||||
'code' => $expected_code,
|
||||
|
||||
Reference in New Issue
Block a user