test_session_init.py file-bridge test is racy

Bug #1247501 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

When doing:
while ./test_pyupstart_session_init.py; do :; done

Eventually one may get.

======================================================================
FAIL: test_init_start_file_bridge (__main__.TestFileBridge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_pyupstart_session_init.py", line 309, in test_init_start_file_bridge
    self.assertTrue(wait_for_file(delete_file_job_logfile))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 5 tests in 5.578s

It seems racy, and it hit a timeout of 5 seconds? (usually this test file completes in under a second). Do we know what went wrong, or is this simply inotify limitations?

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.