Skip to content

Commit

Permalink
sandwich-contexts: try not running postgres test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 21, 2024
1 parent 67b0f52 commit f6d97ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sandwich-contexts/test/Spec/NixContexts/PostgreSQL.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{-# LANGUAGE CPP #-}

module Spec.NixContexts.PostgreSQL where

#ifdef mingw32_HOST_OS

import Relude
import Test.Sandwich

tests :: TopSpec
tests = describe "PostgreSQL Nix" $ do
it "works" pending

#else

import Data.String.Interpolate
import Database.PostgreSQL.Simple (Only(..), connectPostgreSQL, query_)
import Relude
Expand All @@ -25,3 +37,4 @@ selectTwoPlusTwo connString = liftIO $ do
conn <- connectPostgreSQL connString
[Only n] <- query_ conn "select 2 + 2"
return n
#endif

0 comments on commit f6d97ec

Please sign in to comment.