Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
more tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Oct 25, 2018
1 parent 3fa091e commit dee52be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CallPolly/Rules.fs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type Governor
match config.cutoff with
| None | Some { sla=None; dryRun=false } ->
return! execute
| Some ({ timeout=timeout; sla=sla; dryRun = dryRun } as cutoffConfig)->
| Some ({ timeout=timeout; sla=sla; dryRun = dryRun } as cutoffConfig) ->
try return! execute
finally
if not jitProcessingInterval.IsValueCreated then
Expand Down
2 changes: 1 addition & 1 deletion tests/CallPolly.Tests/RulesTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ type Limit(output : Xunit.Abstractions.ITestOutputHelper) =
|> Stopwatch.Time
let oks, errs = Choice.partition results
test <@ 3 = Array.length oks
&& time.Elapsed < ms 2500 // 1s+5*200+ 500ms fudge factor
&& time.Elapsed < ms 3500 // 1s+5*200+ 1500ms fudge factor
&& 3 = Array.length errs
&& errs |> Seq.forall (fun x -> x.GetType() = typedefof<TimeoutException>) @>
let evnts = buffer.Take()
Expand Down

0 comments on commit dee52be

Please sign in to comment.