Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Add unit test for param=0
Browse files Browse the repository at this point in the history
Signed-off-by: andremarianiello <andremarianiello@users.noreply.github.com>
  • Loading branch information
andremarianiello authored and Andre Marianiello committed Dec 26, 2018
1 parent ff9cdc2 commit dfe64ed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/jaegertracing/ConfigTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ TEST(Config, testDefaultSamplingProbability)
Config().sampler().param());
}

TEST(Config, testZeroSamplingParam)
{
{
constexpr auto kConfigYAML = R"cfg(
sampler:
param: 0
)cfg";
const auto config = Config::parse(YAML::Load(kConfigYAML));
ASSERT_EQ(0, config.sampler().param());
}
}

#endif // JAEGERTRACING_WITH_YAML_CPP

} // namespace jaegertracing

0 comments on commit dfe64ed

Please sign in to comment.