Skip to content
Snippets Groups Projects
Commit a3cdb4a5 authored by Thibault Debatty's avatar Thibault Debatty
Browse files

clean test

parent defc6828
No related branches found
No related tags found
No related merge requests found
Pipeline #10872 failed
......@@ -259,9 +259,8 @@ class ExampleTest extends TestCase
// Check if a new StatusChange was inserted in Mongo
$last_change = \App\StatusChange::getLastChangeForServer($server_id);
$records = $server->lastRecords1Day();
$this->assertEquals(
$server->status($records)->code(),
$change->status,
$last_change->status
);
......@@ -269,8 +268,6 @@ class ExampleTest extends TestCase
$change_detection_job = new \App\Jobs\StatusChangeDetection();
$change_detection_job->detectChangeForServer($server);
// Check if a notification was inserted
$this->assertTrue(Notification::findForServer($server_id)->count() > 0);
// Insert multiple status changes to simulate bouncing
for ($i = 0; $i < 4; $i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment