Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 160cc75

Browse files
committed
try spawning 'ps aux | grep nw' before request
1 parent 7d4c145 commit 160cc75

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/image/compare_pixels_test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var fs = require('fs');
22
var path = require('path');
33
var exec = require('child_process').exec;
4+
var spawn = require('child_process').spawn;
45

56
var constants = require('../../tasks/util/constants');
67
var getOptions = require('../../tasks/util/get_image_request_options');
@@ -101,11 +102,12 @@ function testMock (fileName, t) {
101102
}
102103

103104
console.log('before request')
105+
var ps = spawn('ps aux | grep nw');
106+
ps.on('data', function(data) {
107+
console.log(data);
108+
});
104109

105110
request(options)
106111
.pipe(savedImageStream)
107-
.on('error', function() {
108-
console.log("NOOOOOOOOOOOOO")
109-
})
110112
.on('close', checkImage);
111113
}

0 commit comments

Comments
 (0)