From c2ef68a435f97a05cb5a89285dc00941e9fe32a1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 20 Oct 2014 14:21:20 -0700 Subject: [PATCH] Go back to using a concurrency of 2 --- build/tasks/spec-task.coffee | 6 +----- spec/spec-helper.coffee | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build/tasks/spec-task.coffee b/build/tasks/spec-task.coffee index 80041c441..92ccc58a6 100644 --- a/build/tasks/spec-task.coffee +++ b/build/tasks/spec-task.coffee @@ -4,11 +4,7 @@ path = require 'path' _ = require 'underscore-plus' async = require 'async' -if process.env.JANKY_SHA1 - # Use all the cores on CI - concurrency = require('os').cpus().length -else - concurrency = 2 +concurrency = 2 module.exports = (grunt) -> {isAtomPackage, spawn} = require('./task-helpers')(grunt) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 9c5b0cfbc..6f84c2eab 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -45,7 +45,7 @@ Object.defineProperty document, 'title', jasmine.getEnv().addEqualityTester(_.isEqual) # Use underscore's definition of equality for toEqual assertions -if process.env.JANKY_SHA1 +if process.env.JANKY_SHA1 and process.platform is 'win32' jasmine.getEnv().defaultTimeoutInterval = 60000 else jasmine.getEnv().defaultTimeoutInterval = 5000