From c54a503ec40b8ba805d198c05e7bfc663275c537 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Wed, 8 Nov 2023 12:44:11 +1000 Subject: [PATCH] Fix tests --- tests/Feature/Commands/PurgeCommandTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Feature/Commands/PurgeCommandTest.php b/tests/Feature/Commands/PurgeCommandTest.php index 8570f2e7..94a33e72 100644 --- a/tests/Feature/Commands/PurgeCommandTest.php +++ b/tests/Feature/Commands/PurgeCommandTest.php @@ -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], ]); @@ -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')); });