Skip to content

Commit c61f8ac

Browse files
committed
fix long test
1 parent ed2fced commit c61f8ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Keboola/GoogleAnalyticsExtractor/GoogleAnalytics/ClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public function testRetryOnUnknownMetric(): void
124124
],
125125
];
126126

127+
$this->client->getApi()->setBackoffsCount(3);
127128
try {
128129
$this->client->getBatch($query);
129130
} catch (ClientException $e) {
@@ -132,7 +133,7 @@ public function testRetryOnUnknownMetric(): void
132133

133134
/** @var TestHandler $testHandler */
134135
$testHandler = $this->logger->getHandlers()[0];
135-
for ($i = 1; $i <= 6; $i++) {
136+
for ($i = 1; $i < 3; $i++) {
136137
/** @var \Monolog\LogRecord $record */
137138
$record = $testHandler->getRecords()[$i];
138139
$this->assertEquals(

0 commit comments

Comments
 (0)