From 80b78aab9e43c05cef65119191a46e55596a2086 Mon Sep 17 00:00:00 2001 From: bajankristof Date: Thu, 28 Nov 2024 01:54:05 +0100 Subject: [PATCH] test: reduce flakyness in transcoder spec --- spec/ffmpeg/transcoder_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/ffmpeg/transcoder_spec.rb b/spec/ffmpeg/transcoder_spec.rb index 3250437..2d14723 100644 --- a/spec/ffmpeg/transcoder_spec.rb +++ b/spec/ffmpeg/transcoder_spec.rb @@ -73,10 +73,10 @@ module FFMPEG expect(status.media.first.video?).to be(true) expect(status.media.first.height).to eq(360) expect(status.media.first.streams.length).to eq(2) - expect(status.media.first.audio_bit_rate).to be_within(10_000).of(96_000) + expect(status.media.first.audio_bit_rate).to be_within(15_000).of(96_000) expect(status.media.last.audio?).to be(true) expect(status.media.last.streams.length).to eq(1) - expect(status.media.last.audio_bit_rate).to be_within(10_000).of(96_000) + expect(status.media.last.audio_bit_rate).to be_within(15_000).of(96_000) expect(reports.length).to be >= 1 expect(reports).to all(be_a(Reporters::Output))