Fix spec fiel location

This commit is contained in:
Shinya Maeda 2018-05-31 16:29:17 +09:00
parent 3b569fceff
commit fb1e35e556
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ module Ci
# Reschedule to archive live traces # Reschedule to archive live traces
# #
# The targets are jobs with the following conditions # The targets are jobs with the following conditions
# - It had been finished 1 hour ago, but it has not had an acthived trace yet # - Jobs had been finished 1 hour ago, but they don't have an archived trace yet
# This case happens when sidekiq-jobs of archiving traces are lost in order to restart sidekiq instace which hit RSS limit # This could happen when their sidekiq-jobs are lost by SIGKILL
Ci::BuildTraceChunk.find_stale(finished_before: 1.hour.ago) do |build_ids| Ci::BuildTraceChunk.find_stale(finished_before: 1.hour.ago) do |build_ids|
Ci::Build.where(id: build_ids).find_each do |build| Ci::Build.where(id: build_ids).find_each do |build|
begin begin

View File

@ -1,6 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe RescueStaleLiveTraceWorker do describe Ci::RescueStaleLiveTraceWorker do
subject { described_class.new.perform } subject { described_class.new.perform }
before do before do