Reduce the amount of test data produced to prevent data generation errors

This commit is contained in:
Nabeel Shahzad
2018-01-21 13:51:42 -05:00
parent f09b3b888a
commit 0b9654cf61
3 changed files with 6 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ class AcarsTest extends TestCase
$uri = '/api/pireps/' . $pirep_id . '/acars/position';
# Post an ACARS update
$acars_count = \random_int(5, 50);
$acars_count = \random_int(2, 10);
$acars = factory(App\Models\Acars::class, $acars_count)->make(['id'=>''])->toArray();
$update = ['positions' => $acars];