Skip to content

Commit 5d23d89

Browse files
committed
Update NodeUpdateServiceTest.php
1 parent 79673ca commit 5d23d89

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/Unit/Services/Nodes/NodeUpdateServiceTest.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,8 @@ public function testExceptionNotRelatedToConnection()
210210
try {
211211
$closure();
212212
} catch (Exception $exception) {
213-
$this->assertInstanceOf(DaemonConnectionException::class, $exception);
214-
$this->assertSame(
215-
'There was an exception while attempting to communicate with the daemon resulting in a HTTP/E_CONN_REFUSED response code. This exception has been logged.',
216-
$exception->getMessage()
217-
);
213+
$this->assertInstanceOf(Exception::class, $exception);
214+
$this->assertSame('Foo', $exception->getMessage());
218215

219216
return true;
220217
}
@@ -224,9 +221,7 @@ public function testExceptionNotRelatedToConnection()
224221

225222
$this->repository->expects('withFreshModel->update')->andReturns($updatedModel);
226223
$this->configurationRepository->expects('setNode->update')->andThrow(
227-
new DaemonConnectionException(
228-
new TransferException('', 500, new Exception)
229-
)
224+
new Exception('Foo')
230225
);
231226

232227
$this->getService()->handle($model, ['name' => $updatedModel->name]);

0 commit comments

Comments
 (0)