Skip to content

Commit

Permalink
fix flaky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 4, 2025
1 parent bd74412 commit f03d3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Classes/EventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public static function makeParamsFromEvent(array $args, $eventName = null)
Event::fake();

Order::factory()->count(5)->create([
'created_at' => now()->subDays(30),
'created_at' => now()->subDays(28),
]);

EventManager::fireOrderScheduleEvents();

Event::assertDispatched('automation.order.schedule.hourly', 5);
});
})->only();

it('does not dispatch order schedule hourly event if order is not created within 30 days', function() {
Event::fake();
Expand Down

0 comments on commit f03d3a5

Please sign in to comment.