@@ -116,7 +116,7 @@ class TestHelpers
116116 allow ( redis ) . to receive ( :pipelined ) . with ( no_args ) . and_return [ 0 ]
117117 allow ( redis ) . to receive ( :get ) . and_return 0
118118
119- expect ( subject . get_queue_metrics ( [ ] , redis ) ) . to eq ( { pending : 0 , cloning : 0 , booting : 0 , ready : 0 , running : 0 , completed : 0 , total : 0 } )
119+ expect ( subject . get_queue_metrics ( [ ] , redis ) ) . to eq ( { requested : 0 , pending : 0 , cloning : 0 , booting : 0 , ready : 0 , running : 0 , completed : 0 , total : 0 } )
120120 end
121121
122122 it 'adds pool queues correctly' do
@@ -128,7 +128,7 @@ class TestHelpers
128128 allow ( redis ) . to receive ( :pipelined ) . with ( no_args ) . and_return [ 1 , 1 ]
129129 allow ( redis ) . to receive ( :get ) . and_return ( 1 , 0 )
130130
131- expect ( subject . get_queue_metrics ( pools , redis ) ) . to eq ( { pending : 2 , cloning : 1 , booting : 1 , ready : 2 , running : 2 , completed : 2 , total : 8 } )
131+ expect ( subject . get_queue_metrics ( pools , redis ) ) . to eq ( { requested : 6 , pending : 2 , cloning : 1 , booting : 1 , ready : 2 , running : 2 , completed : 2 , total : 14 } )
132132 end
133133
134134 it 'sets booting to 0 when negative calculation' do
@@ -140,7 +140,7 @@ class TestHelpers
140140 allow ( redis ) . to receive ( :pipelined ) . with ( no_args ) . and_return [ 1 , 1 ]
141141 allow ( redis ) . to receive ( :get ) . and_return ( 5 , 0 )
142142
143- expect ( subject . get_queue_metrics ( pools , redis ) ) . to eq ( { pending : 2 , cloning : 5 , booting : 0 , ready : 2 , running : 2 , completed : 2 , total : 8 } )
143+ expect ( subject . get_queue_metrics ( pools , redis ) ) . to eq ( { requested : 6 , pending : 2 , cloning : 5 , booting : 0 , ready : 2 , running : 2 , completed : 2 , total : 14 } )
144144 end
145145 end
146146
0 commit comments