Skip to content

Commit 74c84ed

Browse files
committed
test: remove flakyness from tests
1 parent 0d4bac6 commit 74c84ed

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

mago.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ empty-line-after-opening-tag = false
3535
integrations = ["php-unit", "tempest"]
3636

3737
[linter.rules]
38-
yoda-conditions = { enabled = false }
3938
interface-name = { psr = false }
4039
trait-name = { psr = false }
4140
class-name = { psr = false }
@@ -63,6 +62,3 @@ prefer-arrow-function = { enabled = false } # enable when references are fixed
6362
prefer-first-class-callable = { enabled = false } # enable when arguments are fixed
6463
strict-behavior = { allow-loose-behavior = true }
6564
yoda-conditions = { enabled = false }
66-
67-
# [analyzer]
68-
# override-attribute = { enabled = false } # CONSIDER ENABLING

packages/cryptography/tests/TimelockTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function test_uses_clock_to_sleep(): void
8181

8282
$elapsed = $clock->timestamp()->getMilliseconds() - $ms;
8383

84-
// Even if we mock the clock, there's a `microtime` call that may be off by a few ms on Windows
85-
$this->assertEqualsToMoreOrLess(300, $elapsed, margin: 0, windowsMargin: 2);
84+
// Even if we mock the clock, there's a `microtime` call that may be off by a few ms
85+
$this->assertEqualsToMoreOrLess(300, $elapsed, margin: 2);
8686
}
8787
}

packages/support/tests/Random/FunctionsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public function test_is_ulid(): void
9696
$this->assertFalse(Random\is_ulid('0ec29141-3d58-4187-b664-2d93b7da0d31'));
9797
$this->assertFalse(Random\is_ulid('018dcc19-7e65-7c4b-9b14-9a11df3e0fdb'));
9898
$this->assertFalse(Random\is_ulid('foo'));
99-
$this->assertFalse(Random\is_ulid(Random\secure_string(26)));
10099
$this->assertFalse(Random\is_ulid(null));
101100
}
102101
}

tests/Integration/Console/Components/TaskComponentTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function test_no_task(): void
5252

5353
public function test_process_task(): void
5454
{
55+
$this->skipCI('Flaky on CI');
56+
5557
$this->console
5658
->withoutPrompting()
5759
->call(function (Console $console): void {
@@ -85,6 +87,8 @@ public function test_successful_task(): void
8587

8688
public function test_failing_task(): void
8789
{
90+
$this->skipCI('Flaky on CI');
91+
8892
$this->console
8993
->withoutPrompting()
9094
->call(function (Console $console): void {

tests/Integration/Vite/install/package-lock.json

Whitespace-only changes.

0 commit comments

Comments
 (0)