Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jul 29, 2020
1 parent 39390b6 commit 3b6daca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/core/test/unit/Cardano/Wallet/Api/ServerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec = describe "API Server" $ do
Left e -> fail (show e)

describe "getNetworkInformation" $ do
it "doesn't return 500 when the time interpreter horizon is ahead of\
it "doesn't return 500 when the time interpreter horizon is behind\
\ the current time" $ property $ \(gap' ::(NonNegative Int)) ->
monadicIO $ do
let gap = fromRational $ toRational $ getNonNegative gap'
Expand Down Expand Up @@ -156,14 +156,14 @@ spec = describe "API Server" $ do

forkInterpreter startTime =
let
era1 = HF.initBound
era2 = HF.Bound
start = HF.initBound
end = HF.Bound
(RelativeTime 20)
(SlotNo 20)
(EpochNo 1)

era1Params = HF.defaultEraParams (SecurityParam 2) (mkSlotLength 1)
summary = HF.summaryWithExactly $ exactlyOne
(HF.EraSummary era1 (HF.EraEnd era2) era1Params)
summary = HF.summaryWithExactly $ exactlyOne $
HF.EraSummary start (HF.EraEnd end) era1Params
int = HF.mkInterpreter summary
in mkTimeInterpreter startTime int

0 comments on commit 3b6daca

Please sign in to comment.