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:
2025-01-21 11:11:56 +09:00
parent cf5ece0b5f
commit 33a48f47de
2 changed files with 22 additions and 17 deletions

View File

@@ -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,