@@ -10,7 +10,7 @@ class InstrumentationTest < ActiveSupport::TestCase
10
10
travel_to 2 . days . from_now
11
11
dispatcher = SolidQueue ::Dispatcher . new ( polling_interval : 0.1 , batch_size : 10 ) . tap ( &:start )
12
12
13
- wait_while_with_timeout ( 0.5 . seconds ) { SolidQueue ::ScheduledExecution . any? }
13
+ wait_while_with_timeout! ( 0.5 . seconds ) { SolidQueue ::ScheduledExecution . any? }
14
14
dispatcher . stop
15
15
end
16
16
@@ -19,13 +19,13 @@ class InstrumentationTest < ActiveSupport::TestCase
19
19
end
20
20
21
21
test "stopping a worker with claimed executions emits release_claimed events" do
22
- StoreResultJob . perform_later ( 42 , pause : SolidQueue . shutdown_timeout + 10 . second )
22
+ StoreResultJob . perform_later ( 42 , pause : SolidQueue . shutdown_timeout + 100 . second )
23
23
process = nil
24
24
25
25
events = subscribed ( /release.*_claimed\. solid_queue/ ) do
26
26
worker = SolidQueue ::Worker . new . tap ( &:start )
27
27
28
- wait_while_with_timeout ( 3 . seconds ) { SolidQueue ::ReadyExecution . any? }
28
+ wait_while_with_timeout! ( 3 . seconds ) { SolidQueue ::ReadyExecution . any? }
29
29
process = SolidQueue ::Process . last
30
30
31
31
worker . stop
@@ -54,12 +54,12 @@ class InstrumentationTest < ActiveSupport::TestCase
54
54
end
55
55
56
56
test "starting and stopping a worker emits register_process and deregister_process events" do
57
- StoreResultJob . perform_later ( 42 , pause : SolidQueue . shutdown_timeout + 10 . second )
57
+ StoreResultJob . perform_later ( 42 , pause : SolidQueue . shutdown_timeout + 100 . second )
58
58
process = nil
59
59
60
60
events = subscribed ( /(register|deregister)_process\. solid_queue/ ) do
61
61
worker = SolidQueue ::Worker . new . tap ( &:start )
62
- wait_while_with_timeout ( 3 . seconds ) { SolidQueue ::ReadyExecution . any? }
62
+ wait_while_with_timeout! ( 3 . seconds ) { SolidQueue ::ReadyExecution . any? }
63
63
64
64
process = SolidQueue ::Process . last
65
65
0 commit comments