Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit c09d24d

Browse files
committed
Make tests compile
1 parent c7d62f8 commit c09d24d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cardano-launcher/test/LauncherSpec.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ configurationSpec = describe "configuration files" $ modifyMaxSuccess (const 1)
172172
it "should fail due to passing wrong file path" $ monadicIO $ do
173173
eLauncherOption <- run $ do
174174
-- Path to the launcher file is incorrect
175-
let launcherOptionPath = LauncherOptionPath "this will fail"
175+
let launcherOptionPath = LauncherOptionPath "this will fail" Nothing
176176
withSystemTempDirectory "test-XXXXXX" $ \tmpDir ->
177177
withSetEnvs launcherOptionPath tmpDir $ decodeLauncherOption nullLogging launcherOptionPath
178178
assert $ isLeft eLauncherOption
179179

180180
it "should fail due to missing env vars" $ monadicIO $ do
181181
eLauncherOption <- run $ do
182-
let launcherOptionPath = LauncherOptionPath (configFullFilePath "launcher-config-mainnet.linux.yaml")
182+
let launcherOptionPath = LauncherOptionPath (configFullFilePath "launcher-config-mainnet.linux.yaml") Nothing
183183
-- Not environment variables are set!
184184
decodeLauncherOption nullLogging launcherOptionPath
185185
assert $ isLeft eLauncherOption
@@ -191,15 +191,15 @@ configurationSpec = describe "configuration files" $ modifyMaxSuccess (const 1)
191191
let val = String "this is not launcher option"
192192
let yamlPath = tmpDir </> "launcher.yaml"
193193
encodeFile yamlPath val
194-
let launcherOptionPath = LauncherOptionPath yamlPath
194+
let launcherOptionPath = LauncherOptionPath yamlPath Nothing
195195
withSetEnvs launcherOptionPath tmpDir $ decodeLauncherOption nullLogging launcherOptionPath
196196
assert $ isLeft eLauncherOption
197197

198198
-- | Test that env var substitution works as expected on actual config files
199199
testGetLauncherOption :: FilePath -> Spec
200200
testGetLauncherOption configPath = it ("should be able to perform env substitution on config: " <> configPath) $ monadicIO $ do
201201
eLauncherOption <- run $ do
202-
let launcherOptionPath = LauncherOptionPath (configFullFilePath configPath)
202+
let launcherOptionPath = LauncherOptionPath (configFullFilePath configPath) Nothing
203203
withSystemTempDirectory "test-XXXXXX" $ \tmpDir ->
204204
withSetEnvs launcherOptionPath tmpDir $ decodeLauncherOption nullLogging launcherOptionPath
205205
run $ putTextLn $ show eLauncherOption

0 commit comments

Comments
 (0)