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 Jan 17, 2025
1 parent 011ef25 commit d9f4521
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 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 @@ -379,5 +376,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

0 comments on commit d9f4521

Please sign in to comment.