'use strict';

var PerfTestFramework = require('../../../TestServer/PerfTestFramework.js');
var TestDevice = require('../../../TestServer/TestDevice.js');
var tape = require('../lib/thali-tape');

var test = tape({
  setup: function(t) {
    t.end();
  },
  teardown: function(t) {
    t.end();
  }
});

test('#should be able to add devices to the framework', function (t) {
  var testConfig = JSON.parse('{"devices":{"ios":2}}');
  var perfTestFramework = new PerfTestFramework(testConfig);
  var testDevice = new TestDevice(null, "a device", "ios", "perftest", [], null);
  perfTestFramework.addDevice(testDevice);
  console.log(perfTestFramework);
  t.equal(perfTestFramework.devices["ios"].length, 1);
  t.end();
});

'use strict';

var PerfTestFramework = require('../../../TestServer/PerfTestFramework.js');
var TestDevice = require('../../../TestServer/TestDevice.js');
var tape = require('../lib/thali-tape');

var test = tape({
  setup: function(t) {
    t.end();
  },
  teardown: function(t) {
    t.end();
  }
});

test('#should be able to add devices to the framework', function (t) {
  var testConfig = JSON.parse('{"devices":{"ios":2}, "honorCount":true}');
  var perfTestFramework = new PerfTestFramework(testConfig);
  var testDevice = new TestDevice(null, "a device", "ios", "perftest", [], null);
  perfTestFramework.addDevice(testDevice);
  console.log(perfTestFramework);
  t.equal(perfTestFramework.devices["ios"].length, 1);
  t.end();
});

Add honorCount to test config to prevent timeout being sent
Add honorCount to test config to prevent timeout being sent
