Skip to content

Commit 45fd7fb

Browse files
committed
remove assertions on command as it changes depending the OS
1 parent a30bf81 commit 45fd7fb

5 files changed

Lines changed: 5 additions & 30 deletions

File tree

tests/Agent/WatchFixturesTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function testSendMessageWhenFixturesAreModified()
5555
Config::new()
5656
->mountFilesystemVia(static fn() => Attempt::result($adapter))
5757
->useServerControl(Server::via(
58-
function($command) use (&$count) {
59-
$this->assertSame(
60-
"find '/vendor/package/fixtures/' '-type' 'f' | xargs '-n' '1' '-r' 'stat' '-f' '%Sm %N' '-t' '%Y-%m-%dT%H-%M-%S'",
61-
$command->toString(),
62-
);
63-
58+
static function($command) use (&$count) {
6459
$builder = Builder::foreground(2);
6560
$builder = match ($count) {
6661
0 => $builder->success([['output', 'output']]),

tests/Agent/WatchProofsTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function testSendMessageWhenProofsAreModified()
5555
Config::new()
5656
->mountFilesystemVia(static fn() => Attempt::result($adapter))
5757
->useServerControl(Server::via(
58-
function($command) use (&$count) {
59-
$this->assertSame(
60-
"find '/vendor/package/proofs/' '-type' 'f' | xargs '-n' '1' '-r' 'stat' '-f' '%Sm %N' '-t' '%Y-%m-%dT%H-%M-%S'",
61-
$command->toString(),
62-
);
63-
58+
static function($command) use (&$count) {
6459
$builder = Builder::foreground(2);
6560
$builder = match ($count) {
6661
0 => $builder->success([['output', 'output']]),

tests/Agent/WatchPropertiesTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function testSendMessageWhenSourcesAreModified()
5555
Config::new()
5656
->mountFilesystemVia(static fn() => Attempt::result($adapter))
5757
->useServerControl(Server::via(
58-
function($command) use (&$count) {
59-
$this->assertSame(
60-
"find '/vendor/package/properties/' '-type' 'f' | xargs '-n' '1' '-r' 'stat' '-f' '%Sm %N' '-t' '%Y-%m-%dT%H-%M-%S'",
61-
$command->toString(),
62-
);
63-
58+
static function($command) use (&$count) {
6459
$builder = Builder::foreground(2);
6560
$builder = match ($count) {
6661
0 => $builder->success([['output', 'output']]),

tests/Agent/WatchSourcesTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function testSendMessageWhenSourcesAreModified()
5555
Config::new()
5656
->mountFilesystemVia(static fn() => Attempt::result($adapter))
5757
->useServerControl(Server::via(
58-
function($command) use (&$count) {
59-
$this->assertSame(
60-
"find '/vendor/package/src/' '-type' 'f' | xargs '-n' '1' '-r' 'stat' '-f' '%Sm %N' '-t' '%Y-%m-%dT%H-%M-%S'",
61-
$command->toString(),
62-
);
63-
58+
static function($command) use (&$count) {
6459
$builder = Builder::foreground(2);
6560
$builder = match ($count) {
6661
0 => $builder->success([['output', 'output']]),

tests/Agent/WatchTestsTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function testSendMessageWhenSourcesAreModified()
5555
Config::new()
5656
->mountFilesystemVia(static fn() => Attempt::result($adapter))
5757
->useServerControl(Server::via(
58-
function($command) use (&$count) {
59-
$this->assertSame(
60-
"find '/vendor/package/tests/' '-type' 'f' | xargs '-n' '1' '-r' 'stat' '-f' '%Sm %N' '-t' '%Y-%m-%dT%H-%M-%S'",
61-
$command->toString(),
62-
);
63-
58+
static function($command) use (&$count) {
6459
$builder = Builder::foreground(2);
6560
$builder = match ($count) {
6661
0 => $builder->success([['output', 'output']]),

0 commit comments

Comments
 (0)