Skip to content

Commit 58173e1

Browse files
authored
test(console): disable flaky task test on CI (#1559)
1 parent 8584824 commit 58173e1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/Integration/Console/Components/TaskComponentTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function test_process_task(): void
6868

6969
public function test_successful_task(): void
7070
{
71+
$this->skipCI('Flaky on CI');
72+
7173
$this->console
7274
->withoutPrompting()
7375
->call(function (Console $console): void {

tests/Integration/FrameworkIntegrationTestCase.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ protected function skipWindows(string $reason): void
165165
$this->markTestSkipped($reason);
166166
}
167167

168+
protected function skipCI(string $reason): void
169+
{
170+
if (getenv('CI') !== 'true') {
171+
return;
172+
}
173+
174+
$this->markTestSkipped($reason);
175+
}
176+
168177
/**
169178
* @template TClassName of object
170179
* @param class-string<TClassName> $className

0 commit comments

Comments
 (0)