Skip to content

Commit

Permalink
Enable some contexts that require Unix sockets on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Nov 7, 2024
1 parent d00c7a6 commit ecbcd3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
5 changes: 0 additions & 5 deletions sandwich-contexts/lib/Test/Sandwich/Contexts/PostgreSQL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ test process and then run a proxy to forward packets to the Postgres server's Un
-}

module Test.Sandwich.Contexts.PostgreSQL (
#ifndef mingw32_HOST_OS
-- * Raw PostgreSQL via Nix (TCP socket)
introducePostgresViaNix
, withPostgresViaNix
Expand All @@ -47,10 +46,8 @@ module Test.Sandwich.Contexts.PostgreSQL (

-- * Re-exports
, NetworkAddress(..)
#endif
) where

#ifndef mingw32_HOST_OS
import Control.Monad.Catch (MonadMask)
import Control.Monad.IO.Unlift
import Control.Monad.Logger
Expand Down Expand Up @@ -377,5 +374,3 @@ waitForPostgresDatabase (PostgresContainerOptions {..}) (containerName, p) = do
-- waitForSimpleQuery pc

return pc

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

module Test.Sandwich.Contexts.ReverseProxy.TCP where

#ifndef mingw32_HOST_OS

import Control.Monad.IO.Unlift
import Data.Conduit
import qualified Data.Conduit.Network as DCN
Expand Down Expand Up @@ -39,5 +37,3 @@ withProxyToUnixSocket socketPath f = do
concurrently_
(runConduit $ DCN.appSource appdata .| DCN.appSink appdataServer)
(runConduit $ DCN.appSource appdataServer .| DCN.appSink appdata)

#endif
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

resolver: lts-22.27
resolver: lts-22.40

# ghc-options:
# "$locals": >-
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
subdir: x509-validation
snapshots:
- completed:
sha256: bc144ddf301a5c99f2cf51c7de50279ba144fd4486cb3c66f87ed761d6bbf6e9
size: 719131
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/27.yaml
original: lts-22.27
sha256: 521009bd88879b6993fab5ea5abe1ee2a539dfd8ec2dfc7c57017a8eaee1e78b
size: 720262
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/40.yaml
original: lts-22.40

0 comments on commit ecbcd3d

Please sign in to comment.