Skip to content

Commit ba7ee5d

Browse files
Fix path on Windows.
1 parent bd460e7 commit ba7ee5d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: test/functional/Progress.hs

+8-6
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,29 @@ module Progress (tests) where
66
import Control.Applicative.Combinators
77
import Control.Lens hiding ((.=))
88
import Control.Monad.IO.Class
9+
import Data.Aeson (encode, decode, object, toJSON, Value, (.=))
910
import Data.Default
11+
import Data.Maybe (fromJust)
12+
import Data.List (delete)
13+
import Data.Text (Text, pack)
1014
import Ide.Plugin.Config
1115
import Language.Haskell.LSP.Test
1216
import Language.Haskell.LSP.Types
1317
import qualified Language.Haskell.LSP.Types.Lens as L
1418
import Language.Haskell.LSP.Types.Capabilities
19+
import System.FilePath ((</>))
1520
import Test.Hls.Util
1621
import Test.Tasty
1722
import Test.Tasty.ExpectedFailure (ignoreTestBecause)
1823
import Test.Tasty.HUnit
19-
import Data.Text (Text)
20-
import Data.Aeson (encode, decode, object, toJSON, Value, (.=))
21-
import Data.Maybe (fromJust)
22-
import Data.List (delete)
2324

2425
tests :: TestTree
2526
tests = testGroup "window/workDoneProgress" [
2627
testCase "sends indefinite progress notifications" $
2728
runSession hlsCommand progressCaps "test/testdata" $ do
28-
_ <- openDoc "hlint/ApplyRefact2.hs" "haskell"
29-
expectProgressReports ["Setting up hlint (for hlint/ApplyRefact2.hs)", "Processing"]
29+
let path = "hlint" </> "ApplyRefact2.hs"
30+
_ <- openDoc path "haskell"
31+
expectProgressReports [pack ("Setting up hlint (for " ++ path ++ ")"), "Processing"]
3032
, testCase "eval plugin sends progress reports" $
3133
runSession hlsCommand progressCaps "test/testdata/eval" $ do
3234
doc <- openDoc "T1.hs" "haskell"

0 commit comments

Comments
 (0)