Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test: dont error daemon tests on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jan 10, 2019
1 parent f7ece99 commit f894a3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cli/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ function testSignal (ipfs, sig) {
}
})
proc.stderr.on('data', (data) => {
if (data.toString().length > 0) {
const message = data.toString()
if (message.length > 0 && !/warning/gi.test(message)) {
reject(new Error(data))
} else {
console.warn(message)
}
})
})
Expand Down

0 comments on commit f894a3f

Please sign in to comment.