mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
Fix test suite
This commit is contained in:
parent
cc3338de9e
commit
06d70e4ee4
@ -1,5 +1,5 @@
|
||||
name: stackage
|
||||
version: 0.2.1.2
|
||||
version: 0.2.1.3
|
||||
synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
|
||||
description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
|
||||
homepage: https://github.com/fpco/stackage
|
||||
@ -87,6 +87,8 @@ test-suite spec
|
||||
, Cabal
|
||||
, yaml
|
||||
, containers
|
||||
, http-client
|
||||
, http-client-tls
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
||||
@ -9,10 +9,12 @@ import Test.Hspec
|
||||
import qualified Data.Yaml as Y
|
||||
import Distribution.Version (anyVersion)
|
||||
import qualified Data.Map as Map
|
||||
import Network.HTTP.Client (withManager)
|
||||
import Network.HTTP.Client.TLS (tlsManagerSettings)
|
||||
|
||||
spec :: Spec
|
||||
spec = it "works" $ do
|
||||
bc <- defaultBuildConstraints (error "manager should not be used")
|
||||
spec = it "works" $ withManager tlsManagerSettings $ \man -> do
|
||||
bc <- defaultBuildConstraints man
|
||||
bp <- newBuildPlan bc
|
||||
let bs = Y.encode bp
|
||||
ebp' = Y.decodeEither bs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user