Ticket #123 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Speed up file_monitor unit tests

Reported by: julians Assigned to: mlandauer
Priority: major Milestone: 2007.03.23
Component: Daemon Version:
Keywords: Cc:

Description

The bugfix introduced in r942 caused many tests in file_monitor_test to fail as updates are now not picked up if they happened within the last second. As a temporary fix, I've added sleeps of 1.01 seconds before each call to file_monitor.update in r944. This makes the tests pass but causes the test case to take approx. 10 seconds longer than it would need to. It would be better to set file modification times to some time in the past and do away with the sleeps.

Change History

02/16/07 10:58:09 changed by bruno

  • milestone set to 2007.03.23.

Assigning to the right milestone.

02/19/07 16:05:37 changed by julians

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r960.