-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Preprocessing test suite 'spocktests' for Spock-0.14.0.0..
Building test suite 'spocktests' for Spock-0.14.0.0..
[1 of 6] Compiling Web.Spock.Internal.SessionManagerSpec ( test/Web/Spock/Internal/SessionManagerSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionManagerSpec.o )
[2 of 6] Compiling Web.Spock.Internal.SessionVaultSpec ( test/Web/Spock/Internal/SessionVaultSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionVaultSpec.o )
[3 of 6] Compiling Web.Spock.TestUtils ( test/Web/Spock/TestUtils.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/TestUtils.o )
[4 of 6] Compiling Web.Spock.SafeSpec ( test/Web/Spock/SafeSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/SafeSpec.o )
test/Web/Spock/SafeSpec.hs:36:37: error:
• Couldn't match type: transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
Network.Wai.Test.Internal.ClientState IO
with: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
Network.Wai.Application
(transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
Network.Wai.Test.Internal.ClientState IO)
Expected: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
Network.Wai.Application Wai.Session ()
Actual: Wai.Session ()
• In the first argument of ‘Test.WaiSession’, namely
‘(Wai.deleteClientCookie "spockcookie")’
In a stmt of a 'do' block:
Test.WaiSession (Wai.deleteClientCookie "spockcookie")
In the second argument of ‘($)’, namely
‘do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
res <- Test.get "/test"
Test.liftIO $ checkCookie ids res `shouldReturn` True’
|
36 | do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 6] Compiling Web.Spock.CsrfSpec ( test/Web/Spock/CsrfSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/CsrfSpec.o )
Zialus
Metadata
Metadata
Assignees
Labels
No labels