Skip to content

Commit ea611a5

Browse files
committed
Force flush on ZendFramework tests.
1 parent 41b5858 commit ea611a5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/Integrations/ZendFramework/V1/CommonScenariosTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ protected static function getAppIndexScript()
1414
return __DIR__ . '/../../../Frameworks/ZendFramework/Version_1_12/public/index.php';
1515
}
1616

17+
protected static function getEnvs()
18+
{
19+
return array_merge(parent::getEnvs(), [
20+
'DD_TRACE_AGENT_FLUSH_AFTER_N_REQUESTS' => 1,
21+
]);
22+
}
23+
1724
/**
1825
* @dataProvider provideSpecs
1926
* @param RequestSpec $spec
@@ -22,6 +29,8 @@ protected static function getAppIndexScript()
2229
*/
2330
public function testScenario(RequestSpec $spec, array $spanExpectations)
2431
{
32+
$this->resetRequestDumper();
33+
2534
$traces = $this->tracesFromWebRequest(function () use ($spec) {
2635
$this->call($spec);
2736
});

0 commit comments

Comments
 (0)