Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Nov 8, 2023
1 parent c6d5820 commit c54a503
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Feature/Commands/PurgeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@
expect(DB::table('pulse_outgoing_requests')->count())->toBe(0);
expect(DB::table('pulse_slow_queries')->count())->toBe(1);
expect(DB::table('pulse_requests')->count())->toBe(0);

Pulse::ignore(fn () => Artisan::call('pulse:purge'));
});

it('can specify recorders', function () {
Pulse::ignore(function () {
Artisan::call('pulse:purge');
DB::table('pulse_cache_interactions')->insert([
['date' => '2000-01-02 03:04:05', 'key' => 'foo', 'hit' => true],
]);
Expand Down Expand Up @@ -132,4 +135,6 @@
expect(DB::table('pulse_outgoing_requests')->count())->toBe(1);
expect(DB::table('pulse_slow_queries')->count())->toBe(0);
expect(DB::table('pulse_requests')->count())->toBe(1);

Pulse::ignore(fn () => Artisan::call('pulse:purge'));
});

0 comments on commit c54a503

Please sign in to comment.