Skip to content

Commit 910a2d7

Browse files
committed
Back to checks all around
1 parent fb03c41 commit 910a2d7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

tests/Integration/Services/Servers/BuildModificationServiceTest.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
namespace Pterodactyl\Tests\Integration\Services\Servers;
44

55
use Mockery;
6-
use Exception;
76
use Pterodactyl\Models\Server;
87
use Pterodactyl\Models\Allocation;
98
use Pterodactyl\Exceptions\DisplayException;
10-
use GuzzleHttp\Exception\BadResponseException;
119
use Pterodactyl\Tests\Integration\IntegrationTestCase;
1210
use Pterodactyl\Repositories\Wings\DaemonServerRepository;
1311
use Pterodactyl\Services\Servers\BuildModificationService;
14-
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
1512

1613
class BuildModificationServiceTest extends IntegrationTestCase
1714
{
@@ -114,12 +111,14 @@ public function testServerBuildDataIsProperlyUpdatedOnWings()
114111

115112
$this->daemonServerRepository->expects('update')->with(Mockery::on(function ($data) {
116113
$this->assertEquals([
117-
'memory_limit' => 256,
118-
'swap' => 128,
119-
'io_weight' => 600,
120-
'cpu_limit' => 150,
121-
'threads' => '1,2',
122-
'disk_space' => 1024,
114+
'build' => [
115+
'memory_limit' => 256,
116+
'swap' => 128,
117+
'io_weight' => 600,
118+
'cpu_limit' => 150,
119+
'threads' => '1,2',
120+
'disk_space' => 1024,
121+
],
123122
], $data);
124123

125124
return true;

0 commit comments

Comments
 (0)