Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 068ee56

Browse files
author
Andreas Triantafyllos
committed
[CBR-275] Added initialization in wallet-new's test.
1 parent ee4d6c4 commit 068ee56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wallet-new/test/InternalAPISpec.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ import Pos.Client.KeyStorage (getSecretKeysPlain)
2020
import Pos.Wallet.Web.Account (genSaveRootKey)
2121

2222
import Pos.Launcher (HasConfigurations)
23+
import Pos.Util.Log.LoggerConfig (defaultTestConfiguration)
24+
import Pos.Util.Wlog (Severity (Debug), setupLogging)
2325
import Test.Pos.Util.QuickCheck.Property (assertProperty)
2426

25-
import Test.Hspec (Spec, describe)
27+
import Test.Hspec (Spec, beforeAll_, describe)
2628
import Test.Hspec.QuickCheck (modifyMaxSuccess)
2729
import Test.Pos.Configuration (withDefConfigurations)
2830
import Test.Pos.Wallet.Web.Mode (walletPropertySpec)
@@ -35,7 +37,7 @@ import Servant
3537
{-# ANN module ("HLint: ignore Reduce duplication" :: Text) #-}
3638

3739
spec :: Spec
38-
spec =
40+
spec = beforeAll_ (setupLogging (defaultTestConfiguration Debug)) $
3941
withDefConfigurations $ \_ _ _ ->
4042
describe "development endpoint" $
4143
describe "secret-keys" $ modifyMaxSuccess (const 10) deleteAllSecretKeysSpec

0 commit comments

Comments
 (0)