Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/test.js')
-rw-r--r--bin/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/test.js b/bin/test.js
index 33bb300..2fc368b 100644
--- a/bin/test.js
+++ b/bin/test.js
@@ -7,7 +7,7 @@ var runBrowserTests = !process.env.TRAVIS_PULL_REQUEST ||
var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' })
node.on('close', function (code) {
- if (runBrowserTests) {
+ if (code === 0 && runBrowserTests) {
var browser = cp.spawn('npm', ['run', 'test-browser'], { stdio: 'inherit' })
browser.on('close', function (code) {
process.exit(code)