@@ -83,7 +83,7 @@ class ConcurrencyControlsTest < ActiveSupport::TestCase
83
83
84
84
# C would have started in the beginning, seeing the status empty, and would finish after
85
85
# all other jobs, so it'll do the last update with only itself
86
- assert_stored_sequence ( @result , [ "C" ] )
86
+ assert_stored_sequence ( @result , [ "C" ] )
87
87
end
88
88
89
89
test "run several jobs over the same record sequentially, with some of them failing" do
@@ -99,7 +99,7 @@ class ConcurrencyControlsTest < ActiveSupport::TestCase
99
99
wait_for_jobs_to_finish_for ( 3 . seconds )
100
100
assert_equal 3 , SolidQueue ::FailedExecution . count
101
101
102
- assert_stored_sequence @result , [ "B" , "D" , "F" ] + ( "G" .."K" ) . to_a
102
+ assert_stored_sequence @result , [ "B" , "D" , "F" ] + ( "G" .."K" ) . to_a
103
103
end
104
104
105
105
test "rely on dispatcher to unblock blocked executions with an available semaphore" do
@@ -133,7 +133,7 @@ class ConcurrencyControlsTest < ActiveSupport::TestCase
133
133
134
134
# We can't ensure the order between B and C, because it depends on which worker wins when
135
135
# unblocking, as one will try to unblock B and another C
136
- assert_stored_sequence @result , ( "A" .."K" ) . to_a , [ "A" , "C" , "B" ] + ( "D" .."K" ) . to_a
136
+ assert_stored_sequence @result , ( "A" .."K" ) . to_a , [ "A" , "C" , "B" ] + ( "D" .."K" ) . to_a
137
137
end
138
138
139
139
test "rely on dispatcher to unblock blocked executions with an expired semaphore" do
@@ -165,7 +165,7 @@ class ConcurrencyControlsTest < ActiveSupport::TestCase
165
165
166
166
# We can't ensure the order between B and C, because it depends on which worker wins when
167
167
# unblocking, as one will try to unblock B and another C
168
- assert_stored_sequence @result , ( "A" .."K" ) . to_a , [ "A" , "C" , "B" ] + ( "D" .."K" ) . to_a
168
+ assert_stored_sequence @result , ( "A" .."K" ) . to_a , [ "A" , "C" , "B" ] + ( "D" .."K" ) . to_a
169
169
end
170
170
171
171
test "don't block claimed executions that get released" do
0 commit comments