File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
tests/Integration/Services/Servers Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 33namespace Pterodactyl \Tests \Integration \Services \Servers ;
44
55use Mockery ;
6- use Exception ;
76use Pterodactyl \Models \Server ;
87use Pterodactyl \Models \Allocation ;
98use Pterodactyl \Exceptions \DisplayException ;
10- use GuzzleHttp \Exception \BadResponseException ;
119use Pterodactyl \Tests \Integration \IntegrationTestCase ;
1210use Pterodactyl \Repositories \Wings \DaemonServerRepository ;
1311use Pterodactyl \Services \Servers \BuildModificationService ;
14- use Pterodactyl \Exceptions \Http \Connection \DaemonConnectionException ;
1512
1613class 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 ;
You can’t perform that action at this time.
0 commit comments