mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
hlb, fix bug where sandbox is not being run on a dynamically allocated port (#2428)
This commit is contained in:
parent
a15256571a
commit
2b1204ceac
@ -30,7 +30,7 @@ data Sandbox = Sandbox { port :: Port, proh :: ProcessHandle }
|
||||
sandboxProcess :: SandboxSpec -> FilePath -> IO CreateProcess
|
||||
sandboxProcess SandboxSpec{dar} portFile = do
|
||||
binary <- locateRunfiles (mainWorkspace </> exe "ledger/sandbox/sandbox-binary")
|
||||
pure $ proc binary [ dar, "--port-file", portFile]
|
||||
pure $ proc binary [ dar, "--port-file", portFile, "-p", "0"]
|
||||
|
||||
startSandboxProcess :: SandboxSpec -> FilePath -> IO (ProcessHandle,Maybe Handle)
|
||||
startSandboxProcess spec portFile = withDevNull $ \devNull -> do
|
||||
|
Loading…
Reference in New Issue
Block a user