Browse Source

Fixing UT on mac

Hari Krishna Reddy Juturu 8 years ago
parent
commit
3c71f542a8
1 changed files with 6 additions and 6 deletions
  1. 6 6
      spec/api-process-spec.js

+ 6 - 6
spec/api-process-spec.js

@@ -12,12 +12,12 @@ describe('process module', function () {
   describe('process.getIOCounters()', function () {
     it('returns an io counters object', function () {
       var ioCounters = process.getIOCounters()
-      assert.ok(ioCounters.readOperationCount > 0, 'read operation count not > 0')
-      assert.ok(ioCounters.writeOperationCount > 0, 'write operation count not > 0')
-      assert.ok(ioCounters.otherOperationCount > 0, 'other operation count not > 0')
-      assert.ok(ioCounters.readTransferCount > 0, 'read transfer count not > 0')
-      assert.ok(ioCounters.writeTransferCount > 0, 'write transfer count not > 0')
-      assert.ok(ioCounters.otherTransferCount > 0, 'other transfer count not > 0')
+      assert.equal(typeof ioCounters.readOperationCount, 'number')
+      assert.equal(typeof ioCounters.writeOperationCount, 'number')
+      assert.equal(typeof ioCounters.otherOperationCount, 'number')
+      assert.equal(typeof ioCounters.readTransferCount, 'number')
+      assert.equal(typeof ioCounters.writeTransferCount, 'number')
+      assert.equal(typeof ioCounters.otherTransferCount, 'number')
     })
   })
 })