Skip to content

Commit b542dc1

Browse files
committed
Fix test
1 parent 58b70be commit b542dc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Unit/Service/UtilsServiceTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ public function testIsMusliLinux() {
192192
$exec->expects($this->any())
193193
->willReturnCallback(
194194
function ($command, &$output, &$result_code) {
195-
$this->assertEquals('ldd --version', $command);
195+
$this->assertEquals('ldd --version 2>&1', $command);
196196
$output = ['manylinux'];
197-
$result_code = 0;
197+
$result_code = 1;
198198
}
199199
);
200200
$result = $this->utils->isMusliLinux();
@@ -207,9 +207,9 @@ public function testIsMusliLinuxWithOverride() {
207207
$exec->expects($this->any())
208208
->willReturnCallback(
209209
function ($command, &$output, &$result_code) {
210-
$this->assertEquals('ldd --version', $command);
210+
$this->assertEquals('ldd --version 2>&1', $command);
211211
$output = ['musl linux'];
212-
$result_code = 0;
212+
$result_code = 1;
213213
}
214214
);
215215
$result = $this->utils->isMusliLinux();
@@ -356,7 +356,7 @@ public function testGetBinaryNameMuslLinux() {
356356
$exec->expects($this->any())
357357
->willReturnCallback(
358358
function ($command, &$output, &$result_code) {
359-
$this->assertEquals('ldd --version', $command);
359+
$this->assertEquals('ldd --version 2>&1', $command);
360360
$output = ['musl linux'];
361361
$result_code = 0;
362362
}

0 commit comments

Comments
 (0)