Skip to content

Commit

Permalink
#62 smaller pauses
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 12, 2024
1 parent c126450 commit fd2ab17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/fbe/middleware/test_quota.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/fbe/test_octo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd2ab17

Please sign in to comment.