Skip to content

Commit

Permalink
tests: convert expected time string to time_t
Browse files Browse the repository at this point in the history
- do not use the hardcoded seconds-since-epoch because this will
  lead to timeozone difference, instead convert the time string
  • Loading branch information
franku authored and pstorz committed Jan 15, 2020
1 parent ab0eed8 commit df13c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/tests/catalog.cc
Expand Up @@ -184,5 +184,5 @@ TEST_F(CatalogTest, database)

time_t time_converted = static_cast<time_t>(StrToUtime(stime.data()));

EXPECT_EQ(time_converted, 1574863489);
EXPECT_EQ(time_converted, StrToUtime("2019-11-27 15:04:49"));
}

0 comments on commit df13c94

Please sign in to comment.