Skip to content

Commit 0144b86

Browse files
committed
Fixing rubocop offense && attempt to change order
1 parent 613a110 commit 0144b86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/integration/processes_lifecycle_test.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,12 @@ class ProcessesLifecycleTest < ActiveSupport::TestCase
129129

130130
t = SolidQueue.shutdown_timeout + 1.second
131131

132-
assert_job_status(no_pause, :finished, timeout: t)
133132
assert_completed_job_results("no pause", timeout: t)
133+
assert_job_status(no_pause, :finished, timeout: t)
134134

135135
# This job was left claimed as the worker was shutdown without a chance to terminate orderly
136-
assert_job_status(pause, :claimed, timeout: t)
137136
assert_started_job_result("pause", timeout: t)
138-
137+
assert_job_status(pause, :claimed, timeout: t)
139138

140139
# The process running the long job couldn't deregister, the other did
141140
wait_for_registered_processes(1, timeout: 3.seconds)
@@ -329,7 +328,7 @@ def assert_job_status(active_job, status, timeout: nil)
329328
# will still apply, even though the data returned by the cached queries
330329
# might have been deleted in the forked processes.
331330
if timeout
332-
wait_while_with_timeout!(timeout) { not check_job_status(active_job, status)}
331+
wait_while_with_timeout!(timeout) { not check_job_status(active_job, status) }
333332
else
334333
assert check_job_status(active_job, status)
335334
end

0 commit comments

Comments
 (0)