From 8ad456d2f726a3ea68e298660d7dcac3adc366ea Mon Sep 17 00:00:00 2001 From: Shawn Zhong Date: Tue, 10 Jan 2023 14:07:02 -0600 Subject: [PATCH] Update chrono-test.cc --- test/chrono-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/chrono-test.cc b/test/chrono-test.cc index b27a7be5..d136e9d2 100644 --- a/test/chrono-test.cc +++ b/test/chrono-test.cc @@ -885,8 +885,8 @@ TEST(chrono_test, timestamps_sub_seconds) { std::chrono::milliseconds>(); const auto d = std::chrono::milliseconds(250); - EXPECT_EQ("59.750", fmt::format("{:%S}", epoch - 1 * d)); + EXPECT_EQ("59.750", fmt::format("{:%S}", epoch - d)); EXPECT_EQ("00.000", fmt::format("{:%S}", epoch)); - EXPECT_EQ("00.250", fmt::format("{:%S}", epoch + 1 * d)); + EXPECT_EQ("00.250", fmt::format("{:%S}", epoch + d)); } }