-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration test: Polling for wallet fixture & Better error handling #263
Conversation
…branch in 'request'
… necessary and be more reliable
, "--tlscert", "/dev/null" | ||
, "--tlskey", "/dev/null" | ||
, "--tlsca", "/dev/null" | ||
, "--no-tls" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, even if we provide --no-tls
, we still have to give all the --tls***
options to the node... undoubtedly nice CLI we have there.
start <- | ||
formatTime defaultTimeLocale "%s" . addUTCTime 2 <$> getCurrentTime | ||
[h0, h1, h2, h3] <- forM ["core0", "core1", "core2", "relay"] $ \x -> do | ||
openFile ("/tmp/cardano-node-simple/" <> x) WriteMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf comment below, we have to redirect stderr & stdout somewhere and can't just use NoStream
otherwise the node fails to ... fail and the processes never terminate on failure.
throwM e | ||
HttpExceptionRequest _ e -> | ||
return (status500, Left (HttpException e)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes it possible to pattern match on HttpException failures, these occur when for instance, there's a connection failure because the target server isn't up there yet. It allows us to retry calls when polling.
c9d15b2
to
8d95539
Compare
stylish haskell ¯_(ツ)_/¯ |
8d95539
to
e96d7dd
Compare
🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
4038: Remove redundant [] in backupPhrase doc example r=KtorZ a=Anviking ## Description Mirroring cardano-foundation/cardano-wallet#263 ## Linked issue cardano-foundation/cardano-wallet#263 Co-authored-by: anviking <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Issue Number
#220
Overview
request
function such that it won't throwHttpExeptionRequest
but instead, put them down as value in theLeft
branch (to facilitate handling of such errors)async
wouldn't terminate and just hang there. After a while, I discovered that this was because we close the stderr and stdout output streams for the cluster. With some open handles, the node can successfully shut itself down.Comments