Unbreak the build. Combining chrono with Optional is annoying.

llvm-svn: 321387
This commit is contained in:
Benjamin Kramer 2017-12-22 21:18:50 +00:00
parent 8e769ee70b
commit 171f69e84e
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ TEST(CachePruningPolicyParser, Interval) {
EXPECT_EQ(std::chrono::seconds(1), P->Interval);
P = parseCachePruningPolicy("prune_interval=2m");
ASSERT_TRUE(bool(P));
EXPECT_EQ(std::chrono::minutes(2), P->Interval);
EXPECT_EQ(std::chrono::minutes(2), *P->Interval);
P = parseCachePruningPolicy("prune_interval=3h");
ASSERT_TRUE(bool(P));
EXPECT_EQ(std::chrono::hours(3), P->Interval);
EXPECT_EQ(std::chrono::hours(3), *P->Interval);
}
TEST(CachePruningPolicyParser, Expiration) {