diff --git a/test/core/check-process-test.js b/test/core/check-process-test.js deleted file mode 100644 index 06e4d54b..00000000 --- a/test/core/check-process-test.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * check-process-test.js: Tests for forever.checkProcess(pid) - * - * (C) 2010 Nodejitsu Inc. - * MIT LICENCE - * - */ - -var assert = require('assert'), - path = require('path'), - vows = require('vows'), - forever = require('../../lib/forever'), - macros = require('../helpers/macros'); - -vows.describe('forever/core/check-process').addBatch({ - "When using forever": { - "checking if process exists": { - "if process exists": { - topic: forever.checkProcess(process.pid), - "should return true": function (result) { - assert.isTrue(result); - } - }, - "if process doesn't exist": { - topic: forever.checkProcess(255 * 255 * 255), - // - // This is insanely large value. On most systems there'll be no process - // with such PID. Also, there's no multiplatform way to check for - // PID limit. - // - "should return false": function (result) { - assert.isFalse(result); - } - } - } - } -}).export(module);