Skip to content

Commit

Permalink
fix: noop tracer test (#6552)
Browse files Browse the repository at this point in the history
  • Loading branch information
weslenteche committed Feb 25, 2024
1 parent 149f64a commit fe780d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TracerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ public function testNoOpFactory()
'options' => [
],
],
'noop' => [
'driver' => \Hyperf\Tracer\Adapter\NoOpTracerFactory::class,
],
],
],
]);
Expand All @@ -188,6 +191,9 @@ protected function getContainer($config)
$container->shouldReceive('get')
->with(\Hyperf\Tracer\Adapter\JaegerTracerFactory::class)
->andReturn(new \Hyperf\Tracer\Adapter\JaegerTracerFactory($config));
$container->shouldReceive('get')
->with(\Hyperf\Tracer\Adapter\NoOpTracerFactory::class)
->andReturn(new \Hyperf\Tracer\Adapter\NoOpTracerFactory());
$container->shouldReceive('get')
->with(\Hyperf\Contract\ConfigInterface::class)
->andReturn($config);
Expand Down

0 comments on commit fe780d1

Please sign in to comment.