Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

servant-auth-server test failures on loaded machine #115

Open
domenkozar opened this issue Aug 14, 2018 · 0 comments
Open

servant-auth-server test failures on loaded machine #115

domenkozar opened this issue Aug 14, 2018 · 0 comments

Comments

@domenkozar
Copy link
Collaborator

Failures:

  test/Servant/Auth/ServerSpec.hs:333:3: 
  1) Servant.Auth.Server, The JWT combinator, suceeds as wreq's oauth2Bearer
       uncaught exception: HttpException
       HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 53401
         secure               = False
         requestHeaders       = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
         path                 = "/"
         queryString          = ""
         method               = "GET"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out))
       (after 1 test)
         User {name = "", _id = ""}

  To rerun use: --match "/Servant.Auth.Server/The JWT combinator/suceeds as wreq's oauth2Bearer/"

  test/Servant/Auth/ServerSpec.hs:349:3: 
  2) Servant.Auth.Server, The BasicAuth combinator, succeeds with the correct password and username
       uncaught exception: HttpException
       HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 53404
         secure               = False
         requestHeaders       = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
         path                 = "/"
         queryString          = ""
         method               = "GET"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out))

  To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/succeeds with the correct password and username/"

  test/Servant/Auth/ServerSpec.hs:526:32: 
  3) Servant.Auth.Server, The BasicAuth combinator, fails with incorrect password
       predicate failed on expected exception: HttpException (HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 53410
         secure               = False
         requestHeaders       = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
         path                 = "/"
         queryString          = ""
         method               = "GET"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out)))

  To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/fails with incorrect password/"

  test/Servant/Auth/ServerSpec.hs:526:32: 
  4) Servant.Auth.Server, The BasicAuth combinator, fails with no auth header
       predicate failed on expected exception: HttpException (HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 53413
         secure               = False
         requestHeaders       = [("User-Agent","haskell wreq-0.5.2.1")]
         path                 = "/"
         queryString          = ""
         method               = "GET"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out)))

  To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/fails with no auth header/"

Probably just needs increased default timeout.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant