Skip to content

Commit

Permalink
Force flush on ZendFramework tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoolioh authored and bwoebi committed Oct 2, 2024
1 parent c1a17f8 commit 7a2072f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Integrations/ZendFramework/V1/CommonScenariosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ protected static function getAppIndexScript()
return __DIR__ . '/../../../Frameworks/ZendFramework/Version_1_12/public/index.php';
}

protected static function getEnvs()
{
return array_merge(parent::getEnvs(), [
'DD_TRACE_AGENT_FLUSH_AFTER_N_REQUESTS' => 1,
]);
}

/**
* @dataProvider provideSpecs
* @param RequestSpec $spec
Expand All @@ -22,6 +29,8 @@ protected static function getAppIndexScript()
*/
public function testScenario(RequestSpec $spec, array $spanExpectations)
{
$this->resetRequestDumper();

$traces = $this->tracesFromWebRequest(function () use ($spec) {
$this->call($spec);
});
Expand Down

0 comments on commit 7a2072f

Please sign in to comment.