Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Jan 17, 2023
1 parent 1e67a77 commit 72bc4ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
Expand Down
4 changes: 2 additions & 2 deletions cardano-node-chairman/test/Spec/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import qualified System.Random as IO
import qualified UnliftIO.Exception as IO

hprop_isPortOpen_False :: Property
hprop_isPortOpen_False = H.propertyOnce . H.workspace "temp/network" $ \_ -> do
hprop_isPortOpen_False = H.propertyOnce $ do
-- Check multiple random ports and assert that one is closed.
-- Multiple random ports are checked because there is a remote possibility a random
-- port is actually open by another program
Expand All @@ -42,7 +42,7 @@ hprop_isPortOpen_False = H.propertyOnce . H.workspace "temp/network" $ \_ -> do
H.assert (False `L.elem` results)

hprop_isPortOpen_True :: Property
hprop_isPortOpen_True = H.propertyOnce . H.workspace "temp/network" $ \_ -> do
hprop_isPortOpen_True = H.propertyOnce $ do
-- Check first random port from multiple possible ports to be successfully bound is open
-- Multiple random ports are checked because there is a remote possibility a random
-- port is actually open by another program
Expand Down
4 changes: 2 additions & 2 deletions cardano-testnet/test/Spec/Cli/Babbage/LeadershipSchedule.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"

leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime

H.byDeadlineM 5 leadershipScheduleDeadline $ do
H.byDeadlineM 5 leadershipScheduleDeadline "leadershipSchedule:current:error" $ do
void $ H.execCli' execConfig
[ "query", "leadership-schedule"
, "--testnet-magic", show @Int testnetMagic
Expand Down Expand Up @@ -157,7 +157,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"

leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime

H.byDeadlineM 5 leadershipScheduleDeadline $ do
H.byDeadlineM 5 leadershipScheduleDeadline "leadershipSchedule:next:error" $ do
void $ H.execCli' execConfig
[ "query", "leadership-schedule"
, "--testnet-magic", show @Int testnetMagic
Expand Down

0 comments on commit 72bc4ce

Please sign in to comment.