Itermittent Unit Test Failure: ClusterModelTest.testCreateCluster

Bug #1223953 reported by John Speidel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Low
Sergey Lukjanov

Bug Description

This test fails intermittently.

======================================================================
FAIL: testCreateCluster (savanna.tests.unit.db.models.test_clusters.ClusterModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/john/workspace/savanna/savanna/tests/unit/db/models/test_clusters.py", line 31, in testCreateCluster
    self.assertIsValidModelObject(res)
  File "/Users/john/workspace/savanna/savanna/tests/unit/base.py", line 55, in assertIsValidModelObject
    self.assertAlmostEqual(res.created, now, delta=delta)
AssertionError: datetime.datetime(2013, 9, 11, 15, 15, 53, 503136) != datetime.datetime(2013, 9, 11, 15, 45, 51, 150956) within datetime.timedelta(0, 2) delta
    'datetime.datetime(2013, 9, 11, 15, 15, 53, 503136) != datetime.datetime(2013, 9, 11, 15, 45, 51, 150956) within datetime.timedelta(0, 2) delta' = self._formatMessage('datetime.datetime(2013, 9, 11, 15, 15, 53, 503136) != datetime.datetime(2013, 9, 11, 15, 45, 51, 150956) within datetime.timedelta(0, 2) delta', 'datetime.datetime(2013, 9, 11, 15, 15, 53, 503136) != datetime.datetime(2013, 9, 11, 15, 45, 51, 150956) within datetime.timedelta(0, 2) delta')
>> raise self.failureException('datetime.datetime(2013, 9, 11, 15, 15, 53, 503136) != datetime.datetime(2013, 9, 11, 15, 45, 51, 150956) within datetime.timedelta(0, 2) delta')

Tags: 0.3
Changed in savanna:
milestone: none → 0.3a1
assignee: nobody → Sergey Lukjanov (slukjanov)
importance: Undecided → Low
status: New → Triaged
tags: added: 0.3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

Fix proposed to branch: master
Review: https://review.openstack.org/46245

Changed in savanna:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (master)

Reviewed: https://review.openstack.org/46245
Committed: http://github.com/stackforge/savanna/commit/7cb4e91cac0bb1c71cde6f67ec3d83457dcf9042
Submitter: Jenkins
Branch: master

commit 7cb4e91cac0bb1c71cde6f67ec3d83457dcf9042
Author: Sergey Lukjanov <email address hidden>
Date: Thu Sep 12 12:24:28 2013 +0400

    Fix random fails of unit tests

    Change-Id: I18f2efd7a5a4055ab7ffbc900cc453f578922641
    Fixes: bug #1223953

Changed in savanna:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (stable/0.2)

Fix proposed to branch: stable/0.2
Review: https://review.openstack.org/46674

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (stable/0.2)

Reviewed: https://review.openstack.org/46674
Committed: http://github.com/stackforge/savanna/commit/c10dd81ac06e87039d07a9a8daaa7277defbd3f6
Submitter: Jenkins
Branch: stable/0.2

commit c10dd81ac06e87039d07a9a8daaa7277defbd3f6
Author: Sergey Lukjanov <email address hidden>
Date: Thu Sep 12 12:24:28 2013 +0400

    Fix random fails of unit tests

    Change-Id: I18f2efd7a5a4055ab7ffbc900cc453f578922641
    Fixes: bug #1223953
    (cherry picked from commit 7cb4e91cac0bb1c71cde6f67ec3d83457dcf9042)

Changed in savanna:
status: Fix Committed → Fix Released
Changed in savanna:
milestone: 0.3a1 → 0.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.