From 6ae12dbb183ab897cba2bb11cf1c9f2f7458cb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 4 Jan 2017 13:56:27 +0200 Subject: [PATCH] Fix MySQL tests. --- hc/front/tests/test_log.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hc/front/tests/test_log.py b/hc/front/tests/test_log.py index 736db3e2..6697bf11 100644 --- a/hc/front/tests/test_log.py +++ b/hc/front/tests/test_log.py @@ -12,6 +12,11 @@ class LogTestCase(BaseTestCase): ping = Ping(owner=self.check) ping.save() + # Older MySQL versions don't store microseconds. This makes sure + # the ping is older than any notifications we may create later: + ping.created = "2000-01-01T00:00:00+00:00" + ping.save() + def test_it_works(self): url = "/checks/%s/log/" % self.check.code