Browse Source

Fix MySQL tests.

pull/114/head
Pēteris Caune 8 years ago
parent
commit
6ae12dbb18
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      hc/front/tests/test_log.py

+ 5
- 0
hc/front/tests/test_log.py View File

@ -12,6 +12,11 @@ class LogTestCase(BaseTestCase):
ping = Ping(owner=self.check) ping = Ping(owner=self.check)
ping.save() 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): def test_it_works(self):
url = "/checks/%s/log/" % self.check.code url = "/checks/%s/log/" % self.check.code


Loading…
Cancel
Save