Reduce the number of flights created in tests to reduce collisions

This commit is contained in:
Nabeel Shahzad 2018-03-17 18:45:18 -05:00
parent 02a6d0d056
commit 6fa724d7b7

View File

@ -121,7 +121,7 @@ class FlightTest extends TestCase
public function testFlightSearchApi()
{
$this->user = factory(App\Models\User::class)->create();
$flights = factory(App\Models\Flight::class, 20)->create([
$flights = factory(App\Models\Flight::class, 10)->create([
'airline_id' => $this->user->airline_id
]);