Skip to content

Commit

Permalink
Limit recorded queries to 200 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Aug 26, 2022
1 parent b4f24c9 commit 2e9706e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Recorders/QueryRecorder/QueryRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class QueryRecorder
public function __construct(
Application $app,
bool $reportBindings = true,
?int $maxQueries = null
?int $maxQueries = 200
) {
$this->app = $app;
$this->reportBindings = $reportBindings;
Expand Down
2 changes: 1 addition & 1 deletion tests/QueryRecorder/QueryRecorderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
});

it('does not limit the amount of recorded queries', function () {
$recorder = new QueryRecorder(app(), true);
$recorder = new QueryRecorder(app(), true, null);
$connection = app(Connection::class);

foreach (range(1, 400) as $i) {
Expand Down

0 comments on commit 2e9706e

Please sign in to comment.