Skip to content

Commit

Permalink
Fix a Windows build error in the test suite
Browse files Browse the repository at this point in the history
The definition of `withApp` was mistakenly guarded behind CPP that is not
reachable on Windows, but `withApp` is also needed outside of the CPP.
  • Loading branch information
RyanGlScott committed Sep 9, 2022
1 parent 3d56d73 commit dde0c9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/Web/ScottySpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ availableMethods = [GET, POST, HEAD, PUT, PATCH, DELETE, OPTIONS]

spec :: Spec
spec = do
let withApp = with . scottyApp
describe "ScottyM" $ do
forM_ [
("GET", Scotty.get, get)
Expand Down Expand Up @@ -186,8 +187,6 @@ spec = do
ok = "HTTP/1.1 200 OK"
no = "HTTP/1.1 404 Not Found"

withApp = with . scottyApp

socketPath :: FilePath
socketPath = "/tmp/scotty-test.socket"

Expand Down

0 comments on commit dde0c9d

Please sign in to comment.