Skip to content

Commit

Permalink
fix: trim to get rid of CRLF chars
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Apr 17, 2020
1 parent bb2954e commit b952985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/launch.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Application launch', function () {
// As a workaround, we look at console output and match on strings :<
const tick = 250
const ready = (output) => output && output.match(/(?:daemon is running|Daemon is ready|start daemon FINISHED)/)
const hasPeerId = (output) => output && output.match(/PeerID is (\w+)$/)
const hasPeerId = (output) => output && output.trim().match(/PeerID is (\w+)$/)
let peerId
while (true) {
const logs = await app.client.getMainProcessLogs()
Expand Down

0 comments on commit b952985

Please sign in to comment.