Skip to content

Commit af257de

Browse files
committed
fix pollable job spec
1 parent 8b30001 commit af257de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/jobs/pollable_job_wrapper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class BigException < StandardError
283283

284284
context 'with a big message' do
285285
# postgres complains with 15,826
286-
# mysql complains with 15,828, so test for failure at that point
286+
# mysql complains with 15,829, so test for failure at that point
287287

288288
it 'squeezes just right one in' do
289289
expect do
@@ -295,7 +295,7 @@ class BigException < StandardError
295295
pg_error = /value too long for type character varying/
296296
mysql_error = /Data too long for column 'cf_api_error'/
297297
expect do
298-
pollable_job.error(job, BigException.new(message: 'x' * 15_828))
298+
pollable_job.error(job, BigException.new(message: 'x' * 15_829))
299299
end.to raise_error(::Sequel::DatabaseError, /#{pg_error}|#{mysql_error}/)
300300
end
301301
end

0 commit comments

Comments
 (0)