We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3af4f7 commit 7122c35Copy full SHA for 7122c35
1 file changed
modules/util/tests/util.cpp
@@ -84,7 +84,7 @@ TEST(GetTaskMaxTime, ReturnsDefaultWhenUnset) {
84
}
85
EXPECT_DOUBLE_EQ(ppc::util::GetTaskMaxTime(), 1.0);
86
if (old.has_value()) {
87
- env::detail::set_environment_variable("PPC_TASK_MAX_TIME", std::to_string(old));
+ env::detail::set_environment_variable("PPC_TASK_MAX_TIME", std::to_string(*old));
88
89
90
@@ -100,7 +100,7 @@ TEST(GetPerfMaxTime, ReturnsDefaultWhenUnset) {
100
101
EXPECT_DOUBLE_EQ(ppc::util::GetPerfMaxTime(), 10.0);
102
103
- env::detail::set_environment_variable("PPC_PERF_MAX_TIME", std::to_string(old));
+ env::detail::set_environment_variable("PPC_PERF_MAX_TIME", std::to_string(*old));
104
105
106
0 commit comments