Flaky test: test_import_timestamp

Description

Error message:

Flaky pattern:
This test failed because the utc_now and import date might be assigned at different times. The error message was "'18:30' != u'18:29'", meaning it uploaded it at 18:29, then, when we assigned utc_now, the time had crossed the minute to18:30.

Possible fixes:

  • Mock utcnow somehow.

  • Check for the date and time within a certain range, rather than doing a string comparison.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Activity

Show:
Awais Jibran
July 28, 2015, 6:03 PM

Closing it as fixed.

Awais Jibran
July 28, 2015, 5:31 PM

Fixed and merged
Please verify and close this.

ChristinaR
July 28, 2015, 2:38 PM

My commit for was different-- we needed to wait for the timestamp to appear. Here the issue is that the time is present, but incorrect.

Awais Jibran
July 28, 2015, 1:51 PM

In code review: PR#9097

Fixed

Assignee

clytwynecR

Reporter

clytwynecR

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Priority

CAT-2