cdepillabout / servant-rawm

Effectful Raw handler for Servant servers.
https://hackage.haskell.org/package/servant-rawm
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

test suite failure for servant-rawm-0.2.0.1 #2

Closed DanBurton closed 6 years ago

DanBurton commented 6 years ago

As seen on the stackage build server:

tests
  instances
    HasServer:                                   OK
    HasClient:                                   OK
  client
    (unnamed)
      correctly gets files:                      FAIL (0.25s)
        expected Right "This is bar.txt.\n", but got Left (FailureResponse {failingRequest = http://localhost:51135/test/bar.txt?[], responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseContentType = text/plain, responseBody = "File not found"})
      returns ServantErr for non-existent files: OK (0.25s)
  server
    correctly serves files:                      FAIL
      status mismatch:
        expected: 200
        but got:  404
      body mismatch:
        expected: "This is bar.txt.\n"
        but got:  "File not found"
    returns 404 for non-existent files:          OK

2 out of 6 tests failed (0.26s)

This may be due to test files not being present in the package's tarball on hackage.

cdepillabout commented 6 years ago

Thanks for the heads up. I've fixed this in version 0.2.0.2 of servant-rawm.