Skip to content

Commit

Permalink
Adapt GhcModPluginSpec after merge of haskell#1496
Browse files Browse the repository at this point in the history
This missed CI as it came in from haskell#1505
  • Loading branch information
alanz committed Dec 29, 2019
1 parent 310450e commit f99237b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/GhcModPluginSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ghcmodSpec =
fp <- makeAbsolute "./FileWithWarning.hs"
let act = setTypecheckedModule arg
arg = filePathToUri fp
IdeResultOk (_,env) <- runSingle testPlugins act
IdeResultOk (_,env) <- runSingle testPlugins fp act
case env of
[] -> return ()
[s] -> T.unpack s `shouldStartWith` "Loaded package environment from"
Expand All @@ -55,7 +55,7 @@ ghcmodSpec =
"Variable not in scope: x"
Nothing

testCommand testPlugins act "ghcmod" "check" arg res
testCommand testPlugins fp act "ghcmod" "check" arg res


-- ----------------------------------------------------------------------------
Expand All @@ -72,7 +72,7 @@ ghcmodSpec =
, (Range (toPos (5,1)) (toPos (5,14)), "Int -> Int")
]

testCommand testPlugins act "ghcmod" "type" arg res
testCommand testPlugins fp act "ghcmod" "type" arg res


-- ----------------------------------------------------------------------------
Expand Down

0 comments on commit f99237b

Please sign in to comment.