summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-11-27 20:44:00 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-11-28 22:34:10 +0100
commitd22257b9f43ba30dd3ca1274d1aa61e688585785 (patch)
tree39407ee4fd3cfcd4fd1e7861c843ce9fc2c9ed92 /src/Run.hs
parent9c3bfa972d666b5b8cd5eb7a978a264f27cf7292 (diff)
Remove embedded Expr for some inner TestBlock parameters
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Run.hs b/src/Run.hs
index 76545e4..31a3c9e 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -162,18 +162,18 @@ evalBlock (TestBlock steps) = forM_ steps $ \case
testStepGuard line vars expr
DisconnectNode node inner -> do
- withDisconnectedUp (nodeUpstream node) $ evalBlock =<< eval inner
+ withDisconnectedUp (nodeUpstream node) $ evalBlock inner
DisconnectNodes net inner -> do
- withDisconnectedBridge (netBridge net) $ evalBlock =<< eval inner
+ withDisconnectedBridge (netBridge net) $ evalBlock inner
DisconnectUpstream net inner -> do
case netUpstream net of
- Just link -> withDisconnectedUp link $ evalBlock =<< eval inner
- Nothing -> evalBlock =<< eval inner
+ Just link -> withDisconnectedUp link $ evalBlock inner
+ Nothing -> evalBlock inner
PacketLoss loss node inner -> do
- withNodePacketLoss node loss $ evalBlock =<< eval inner
+ withNodePacketLoss node loss $ evalBlock inner
Wait -> do
void $ outPromptGetLine "Waiting..."