Fix tests with model events
This commit is contained in:
parent
2fc5a734f9
commit
f1c1699994
3 changed files with 7 additions and 25 deletions
|
@ -22,7 +22,7 @@ class AllocationFactory extends Factory
|
|||
{
|
||||
return [
|
||||
'ip' => $this->faker->unique()->ipv4,
|
||||
'port' => $this->faker->unique()->randomNumber(5),
|
||||
'port' => $this->faker->unique()->numberBetween(10000, 20000),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -38,8 +38,11 @@ class ServerFactory extends Factory
|
|||
'cpu' => 0,
|
||||
'threads' => null,
|
||||
'oom_disabled' => 0,
|
||||
'allocation_limit' => null,
|
||||
'database_limit' => null,
|
||||
'startup' => '/bin/bash echo "hello world"',
|
||||
'image' => 'foo/bar:latest',
|
||||
'allocation_limit' => 0,
|
||||
'database_limit' => 0,
|
||||
'backup_limit' => 0,
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue