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

Commit ecbbdcf

Browse files
authored
Merge pull request #3504 from input-output-hk/mafo/develop-quick-fix
quickfix for a build-error introduced in 1622c6c
2 parents 99d14ca + 1dd8a7a commit ecbbdcf

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

pkgs/default.nix

+2
Original file line numberDiff line numberDiff line change
@@ -17785,6 +17785,7 @@ license = stdenv.lib.licenses.mit;
1778517785
, generics-sop
1778617786
, hedgehog
1778717787
, hspec
17788+
, hspec-core
1778817789
, http-api-data
1778917790
, http-client
1779017791
, http-client-tls
@@ -18007,6 +18008,7 @@ filepath
1800718008
formatting
1800818009
hedgehog
1800918010
hspec
18011+
hspec-core
1801018012
lens
1801118013
mtl
1801218014
normaldistribution

wallet-new/cardano-sl-wallet-new.cabal

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ test-suite wallet-unit-tests
511511
, data-default
512512
, formatting
513513
, hspec
514+
, hspec-core
514515
, lens
515516
, mtl
516517
, QuickCheck

wallet-new/src/Cardano/Wallet/API/WIP/LegacyHandlers.hs

+1-10
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ module Cardano.Wallet.API.WIP.LegacyHandlers (
99
handlers
1010
) where
1111

12-
import Ntp.Client (NtpStatus)
13-
import Pos.Chain.Txp (TxpConfiguration)
14-
import Pos.Crypto (ProtocolMagic)
15-
import Pos.Infra.Diffusion.Types (Diffusion)
16-
1712
import Formatting (build, sformat)
1813
import Universum
1914
import UnliftIO (MonadUnliftIO)
@@ -38,12 +33,8 @@ import Servant
3833

3934
handlers :: HasConfigurations
4035
=> (forall a. MonadV1 a -> Handler a)
41-
-> ProtocolMagic
42-
-> TxpConfiguration
43-
-> Diffusion MonadV1
44-
-> TVar NtpStatus
4536
-> Server WIP.API
46-
handlers naturalTransformation _pm _txpConfig _diffusion _ntpStatus =
37+
handlers naturalTransformation =
4738
hoist' (Proxy @WIP.API) handlersPlain
4839
where
4940
hoist'

wallet-new/src/Cardano/Wallet/LegacyServer.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ walletServer natV0 coreConfig txpConfig diffusion ntpStatus runMode =
4545
v0Handler = V0.handlers natV0 coreConfig txpConfig diffusion ntpStatus
4646
v1Handler = V1.handlers natV0 coreConfig txpConfig diffusion ntpStatus
4747
internalHandler = Internal.handlers natV0 runMode
48-
wipHandler = WIP.handlers natV0 pm txpConfig diffusion ntpStatus
48+
wipHandler = WIP.handlers natV0
4949

5050
walletDocServer
5151
:: (HasConfigurations, HasCompileInfo)

wallet-new/test/unit/Test/Spec/Keystore.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import System.IO.Error (IOError)
1111

1212
import Test.Hspec (Spec, describe, it, shouldBe, shouldReturn,
1313
shouldSatisfy)
14+
import Test.Hspec.Core.Spec (sequential)
1415
import Test.Hspec.QuickCheck (prop)
1516
import Test.QuickCheck (Gen, arbitrary)
1617
import Test.QuickCheck.Monadic (forAllM, monadicIO, pick, run)
@@ -51,9 +52,10 @@ nukeKeystore :: FilePath -> IO ()
5152
nukeKeystore fp =
5253
removeFile fp `catch` (\(_ :: IOError) -> return ())
5354

55+
-- These test perform file-IO and cannot run in parallel.
5456
spec :: Spec
5557
spec =
56-
describe "Keystore to store UserSecret(s)" $ do
58+
sequential $ describe "Keystore to store UserSecret(s)" $ do
5759
it "creating a brand new one works" $ do
5860
nukeKeystore "test_keystore.key"
5961
Keystore.bracketKeystore KeepKeystoreIfEmpty "test_keystore.key" $ \_ks ->

0 commit comments

Comments
 (0)