summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 02:49:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 02:49:10 +0100
commitd0ab67324c42d3d3be2700daa791e227c384c059 (patch)
treef80fc28a5bec031573d403c389a688efad8adc16
parentAssert the row in the init script (diff)
downloadproject2-d0ab67324c42d3d3be2700daa791e227c384c059.tar.bz2
project2-d0ab67324c42d3d3be2700daa791e227c384c059.tar.xz
project2-d0ab67324c42d3d3be2700daa791e227c384c059.zip
Test against a fixed time as class is initialized once per test
-rw-r--r--project2/sql/unittests/testCore.cpp2
1 files changed, 1 insertions, 1 deletions
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({