From d0ab67324c42d3d3be2700daa791e227c384c059 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 2 May 2015 02:49:10 +0100 Subject: Test against a fixed time as class is initialized once per test --- project2/sql/unittests/testCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/sql/unittests/testCore.cpp b/project2/sql/unittests/testCore.cpp index 911eccb..ce921c2 100644 --- a/project2/sql/unittests/testCore.cpp +++ b/project2/sql/unittests/testCore.cpp @@ -6,7 +6,7 @@ TestCore::TestCore() : testInt(43), testDouble(3.14), testString("Some C String"), - testDateTime(boost::posix_time::from_time_t(time(NULL))), + testDateTime(boost::posix_time::from_time_t(1430530593)), testInterval(boost::posix_time::time_duration(1, 2, 3)) { TestOptionsSource::LoadTestOptions({ -- cgit v1.2.3