Skip to content

Commit 1b6846a

Browse files
Fix throttle test isolation to prevent cache bleed-through to subsequent tests
Co-authored-by: delicatacurtis <247246500+delicatacurtis@users.noreply.github.com>
1 parent 7a0440f commit 1b6846a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Feature/SearchTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,8 @@
196196
}
197197

198198
$response->assertStatus(429);
199+
200+
// Clear rate limiter cache to avoid affecting subsequent tests
201+
\Illuminate\Support\Facades\Cache::flush();
199202
});
200203
});

0 commit comments

Comments
 (0)