1. 23 11月, 2015 2 次提交
    • S
      Merge pull request #22380 from wjessop/fix_race_in_aj_integration_tests · 9e486905
      Sean Griffin 提交于
      Fix race condition testing for job execution order
      9e486905
    • W
      Fix race condition testing for job execution order · 171e788c
      Will Jessop 提交于
      On most filesystems file ctime is limited to 1 second granularity, which means that on
      faster computers multiple simple jobs (for instance dummy TestJob) can finish within the
      same second.
      
      The execution order test in ActiveJob integration tests relies on multiple TestJobs
      writing files then comparing the ctime. As a result integration tests would sometimes
      fail as the ctime of the files written by these TestJobs could have coincidental ctimes
      making the comparison for job order fail.
      
      This commit adds a far more precise execution time (to the extent that the Ruby Time
      class allows) to the file created by TestJob, and updates the execution order assertion
      to use it, removing the race condition.
      171e788c
  2. 22 11月, 2015 7 次提交
  3. 21 11月, 2015 8 次提交
  4. 20 11月, 2015 9 次提交
  5. 19 11月, 2015 11 次提交
  6. 18 11月, 2015 3 次提交