Skip to content
Browse files

added test for nice limits

  • Loading branch information...
1 parent 72192f5 commit adaea856f26851f569d44f17de4a9fb3371501d4 @schaermu schaermu committed
Showing with 6 additions and 1 deletion.
  1. +1 −1 test/coverage.html
  2. +5 −0 test/processor.test.js
View
2 test/coverage.html
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
5 test/processor.test.js
@@ -27,6 +27,11 @@ describe('Processor', function() {
});
});
+ it('should properly limit niceness', function() {
+ new Ffmpeg({ source: this.testfile, nolog: true, timeout: 0.02 })
+ .renice(100).options._nice.level.should.equal(0);
+ });
+
it('should kill the process on timeout', function(done) {
var testFile = __dirname + '/assets/testProcessKill.flv';
new Ffmpeg({ source: this.testfile, nolog: true, timeout: 0.02 })

0 comments on commit adaea85

Please sign in to comment.
Something went wrong with that request. Please try again.