Skip to content

Commit

Permalink
Fix flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Jun 4, 2024
1 parent 2e328e2 commit d5fc21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Feature/Recorders/ServersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
expect($payload->memory_used)->toBe(1234);
expect($payload->memory_total)->toBe(123456789);

$aggregates = Pulse::ignore(fn () => DB::table('pulse_aggregates')->get());
$aggregates = Pulse::ignore(fn () => DB::table('pulse_aggregates')->orderBy('type')->get());
expect($aggregates->count())->toBe(8);
expect($aggregates->pluck('type')->unique()->values()->all())->toBe(['cpu', 'memory']);
expect($aggregates->pluck('value')->unique()->values()->all())->toEqual(['987654321.00', '1234.00']);
Expand Down

0 comments on commit d5fc21c

Please sign in to comment.