Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case test_timer_stop_on_save fails occasionally #111

Closed
cdubz opened this issue Feb 5, 2020 · 0 comments
Closed

Test case test_timer_stop_on_save fails occasionally #111

cdubz opened this issue Feb 5, 2020 · 0 comments
Assignees
Milestone

Comments

@cdubz
Copy link
Member

cdubz commented Feb 5, 2020

The core.tests.tests_forms.InitialValuesTestCase.test_timer_stop_on_save test case fails inconsistently because of small datetime differences. E.g. --

[14:16:13] Starting 'coverage'...
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.....................................................F...................................................................
======================================================================
FAIL: test_timer_stop_on_save (core.tests.tests_forms.InitialValuesTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/cdubz/babybuddy/core/tests/tests_forms.py", line 138, in test_timer_stop_on_save
    self.assertEqual(self.localtime_string(self.timer.end), params['end'])
AssertionError: '02/05/2020 02:16:28 PM' != '02/05/2020 02:16:27 PM'
- 02/05/2020 02:16:28 PM
?                   ^
+ 02/05/2020 02:16:27 PM
?                   ^
----------------------------------------------------------------------
Ran 121 tests in 29.042s
FAILED (failures=1)
Destroying test database for alias 'default'...
[14:16:46] 'coverage' errored after 33 s
@cdubz cdubz added this to the v1.3.1 milestone Feb 5, 2020
@cdubz cdubz self-assigned this Feb 5, 2020
cdubz added a commit that referenced this issue Feb 7, 2020
@cdubz cdubz closed this as completed Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant