Skip to content

Commit 4a648d9

Browse files
author
euonymos
committed
fix: keep ./tmp folder as it's needed for indexing tests
1 parent e407192 commit 4a648d9

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ haddocks
2727
# Functions changed by runing local testnet
2828
devnet/db
2929
devnet/genesis-*.json
30+
test.log

test/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import Voting (votingSpec)
1515

1616
main :: IO ()
1717
main = hspec do
18-
runIO clearLogs
19-
ouraFiltersSpec
20-
dynamicSpec
21-
offChainSpec
2218
auctionSpec
2319
votingSpec
20+
offChainSpec
21+
dynamicSpec
22+
runIO clearLogs
23+
ouraFiltersSpec

test/OffChain.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ offChainSpec = describe "Checking monad works" $ do
3333
_blockchainParams <- queryBlockchainParams
3434
return ()
3535
it "Querying UTxO works" $ execOn $ do
36-
address <- signingKeyToAddress <$> (!! 0) <$> getTestWalletSks
36+
address <- signingKeyToAddress . (!! 0) <$> getTestWalletSks
3737
_utxo <- queryUtxo $ ByAddresses [address]
3838
return ()
3939
it "Sending transaction works" $ execOn $ do
@@ -50,8 +50,7 @@ offChainSpec = describe "Checking monad works" $ do
5050
out userAddress =
5151
TxOut
5252
userAddress
53-
( convert (lovelaceToValue $ fromInteger 3_000_000)
54-
)
53+
(convert $ lovelaceToValue 3_000_000)
5554
TxOutDatumNone
5655
ReferenceScriptNone
5756
tx =

test/Utils.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ submitAndCheck :: (MonadSubmitTx m, MonadIO m) => TxSpec -> m ()
146146
submitAndCheck spec = do
147147
case head $ actions spec of
148148
MkSomeCEMAction (MkCEMAction _ transition) ->
149-
liftIO $ putStrLn $ "Doing " <> show transition
149+
liftIO $ putStrLn $ " --> " <> show transition
150150
awaitEitherTx =<< resolveTxAndSubmit spec
151151

152152
perTransitionStats :: (MonadBlockchainParams m) => m (Map.Map String Fees)

test/Voting.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Utils
1818
votingSpec = describe "Voting" $ do
1919
let ignoreTest (_name :: String) = const (return ())
2020

21-
-- FIXME: fix Voting budget
21+
-- FIXME: fix Voting budget or fix this issue https://github.com/mlabs-haskell/clb/issues/50
2222
ignoreTest "Successfull flow" $
2323
execClb $ do
2424
jury1 : jury2 : creator : _ <- getTestWalletSks
@@ -34,21 +34,22 @@ votingSpec = describe "Voting" $ do
3434
}
3535
params = MkCEMParams params' NoSingleStageParams
3636
mkAction = MkSomeCEMAction . MkCEMAction params
37-
-- Start
37+
38+
-- Create
3839
submitAndCheck $
3940
MkTxSpec
4041
{ actions = [mkAction Create]
4142
, specSigner = creator
4243
}
4344

45+
-- Start
4446
submitAndCheck $
4547
MkTxSpec
4648
{ actions = [mkAction Start]
4749
, specSigner = creator
4850
}
4951

5052
-- Vote
51-
5253
submitAndCheck $
5354
MkTxSpec
5455
{ actions = [mkAction $ Vote (signingKeyToPKH jury1) Yes]
@@ -62,12 +63,11 @@ votingSpec = describe "Voting" $ do
6263
}
6364

6465
-- Count result
65-
6666
submitAndCheck $
6767
MkTxSpec
6868
{ actions = [mkAction Finalize]
6969
, specSigner = jury2
7070
}
7171

7272
Just state <- queryScriptState params
73-
liftIO $ state `shouldBe` (Finalized Abstain)
73+
liftIO $ state `shouldBe` Finalized Abstain

tmp/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)