From fd2ab17e7c688bc0ddb44abd8713ceef9e8afa23 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 12 Aug 2024 08:49:24 +0300 Subject: [PATCH] #62 smaller pauses --- test/fbe/middleware/test_quota.rb | 4 ++-- test/fbe/test_octo.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fbe/middleware/test_quota.rb b/test/fbe/middleware/test_quota.rb index 85d46c3..adbfcda 100644 --- a/test/fbe/middleware/test_quota.rb +++ b/test/fbe/middleware/test_quota.rb @@ -45,7 +45,7 @@ def call(env) def test_quota_middleware_pauses_when_quota_low loog = Loog::NULL - pause = 1 + pause = 0.1 app = FakeApp.new middleware = Fbe::Middleware::Quota.new(app, loog:, pause:) start_time = Time.now @@ -62,7 +62,7 @@ def test_quota_middleware_pauses_when_quota_low end def test_quota_middleware_logs_when_quota_low - pause = 1 + pause = 0.1 log_output = StringIO.new loog = Logger.new(log_output) app = FakeApp.new diff --git a/test/fbe/test_octo.rb b/test/fbe/test_octo.rb index 4a93b09..eb7f92c 100644 --- a/test/fbe/test_octo.rb +++ b/test/fbe/test_octo.rb @@ -139,7 +139,7 @@ def test_search_issues def test_pauses_when_quota_is_exceeded WebMock.disable_net_connect! global = {} - pause = 1 + pause = 0.1 o = Fbe.octo(loog: Loog::NULL, global:, options: Judges::Options.new({ 'github_api_pause' => pause })) limit = 100 start_time = Time.now