Skip to content

Commit bfc4bb3

Browse files
committed
Fix test by enforcing sort order
1 parent b95cbff commit bfc4bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Feature/Recorders/SlowOutgoingRequestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'key' => json_encode(['GET', 'https://laravel.com']),
2424
'value' => 0,
2525
]);
26-
$aggregates = Pulse::ignore(fn () => DB::table('pulse_aggregates')->orderBy('period')->get());
26+
$aggregates = Pulse::ignore(fn () => DB::table('pulse_aggregates')->orderBy('period')->orderBy('aggregate')->get());
2727
expect($aggregates)->toHaveCount(8);
2828
expect($aggregates[0])->toHaveProperties([
2929
'bucket' => (int) (floor(now()->timestamp / 60) * 60),

0 commit comments

Comments
 (0)