From f905de7c428ef7f1bce86ba3d272b01b5f640545 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 26 Sep 2024 09:38:55 -0500 Subject: [PATCH] update test --- repertory/repertory_test/src/utils_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repertory/repertory_test/src/utils_test.cpp b/repertory/repertory_test/src/utils_test.cpp index 96b74e0c..4277f7c5 100644 --- a/repertory/repertory_test/src/utils_test.cpp +++ b/repertory/repertory_test/src/utils_test.cpp @@ -28,8 +28,8 @@ namespace repertory { #if defined(_WIN32) TEST(utils, convert_api_date) { LARGE_INTEGER li{}; - li.QuadPart = utils::time::unix_time_to_windows_time( - s3_provider::convert_api_date("2009-10-12T17:50:30.111Z")); + li.QuadPart = static_cast(utils::time::unix_time_to_windows_time( + s3_provider::convert_api_date("2009-10-12T17:50:30.000Z"))); SYSTEMTIME st{}; FileTimeToSystemTime(reinterpret_cast(&li), &st); @@ -44,7 +44,7 @@ TEST(utils, convert_api_date) { EXPECT_EQ(17, lt.wHour); EXPECT_EQ(50, lt.wMinute); EXPECT_EQ(30, lt.wSecond); - EXPECT_EQ(111, lt.wMilliseconds); + EXPECT_EQ(0, lt.wMilliseconds); } #endif // defined(_WIN32)