Skip to content

Commit c6e4286

Browse files
committed
Correct the sleep
1 parent 440477e commit c6e4286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/cmab_client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166

167167
expect(Kernel).to have_received(:sleep).with(0.01).once
168168
expect(Kernel).to have_received(:sleep).with(0.02).once
169-
expect(Kernel).not_to have_received(:sleep).with(0.08)
169+
expect(Kernel).not_to have_received(:sleep).with(0.04)
170170
end
171171

172172
it 'should exhaust all retry attempts' do
@@ -190,7 +190,7 @@
190190

191191
expect(Kernel).to have_received(:sleep).with(0.01).once
192192
expect(Kernel).to have_received(:sleep).with(0.02).once
193-
expect(Kernel).to have_received(:sleep).with(0.08).once
193+
expect(Kernel).to have_received(:sleep).with(0.04).once
194194

195195
expect(spy_logger).to have_received(:log).with(Logger::ERROR, a_string_including('Max retries exceeded for CMAB request'))
196196
end

0 commit comments

Comments
 (0)