diff --git a/lib/configured/configured_test.js b/lib/configured/configured_test.js index 7445cf830..02e92c050 100644 --- a/lib/configured/configured_test.js +++ b/lib/configured/configured_test.js @@ -12,11 +12,10 @@ var rmdir = Q.denodeify(require("rimraf")); var pathExists = Q.denodeify(fs.pathExists); describe("lib/configured", function() { + this.timeout(5 * 1000 * 60); var tmpPath = path.join(__dirname, "test", "tmp"); it(".getProject is able to get a github url", function() { - this.timeout(20000); - return rmdir(tmpPath) .then(function() { return configured.getProject({ @@ -32,8 +31,6 @@ describe("lib/configured", function() { }); it(".getProject is able to get a folder", function() { - this.timeout(10000); - return configured .getProject({ source: path.join(__dirname, "test", "example_project"), @@ -45,9 +42,6 @@ describe("lib/configured", function() { }); it(".getProject is able to get a github url and npm install specific dependencies", function() { - // really long timeout incase github is slow - this.timeout(240000); - return rmdir(tmpPath) .then(function() { return configured.getProject({ @@ -70,8 +64,6 @@ describe("lib/configured", function() { }); it(".geneateProject is able to read the documentjs.json without versions and build a site", function() { - this.timeout(30000); - return rmdir(path.join(__dirname, "test", "api")) .then(function() { return configured.generateProject({ @@ -86,8 +78,6 @@ describe("lib/configured", function() { }); it(".geneateProject is able to take a docObject instead of reading one", function() { - this.timeout(30000); - return rmdir(path.join(tmpPath, "example_project")) .then(function() { return configured.generateProject({ @@ -110,8 +100,6 @@ describe("lib/configured", function() { }); it(".generateProject is able to document multiple versions", function() { - this.timeout(240000); - function switchFromOldToOld() { return open( __dirname, @@ -194,8 +182,6 @@ describe("lib/configured", function() { }); it(".generateProject is able to build when passed a version's branch name", function() { - this.timeout(60000); - return rmdir(path.join(tmpPath, "multiple_versions")) .then(function() { return configured.generateProject( @@ -216,8 +202,6 @@ describe("lib/configured", function() { }); it(".generateProject is able to build something without a documentjs.json", function() { - this.timeout(30000); - return rmdir(path.join(__dirname, "test", "docs")) .then(function() { return configured.generateProject({ @@ -237,8 +221,6 @@ describe("lib/configured", function() { }); it("sites can be on projects", function() { - this.timeout(10000); - return rmdir(path.join(tmpPath, "project_sites")) .then(function() { return configured.generateProject({ @@ -270,8 +252,6 @@ describe("lib/configured", function() { }); it("is able to change where versions is located", function() { - this.timeout(10000); - return rmdir(path.join(tmpPath, "version_placement")) .then(function() { return configured.generateProject({ @@ -297,8 +277,6 @@ describe("lib/configured", function() { }); it("is able to import other tags", function() { - this.timeout(20000); - return rmdir(path.join(tmpPath, "custom_tags")) .then(function() { return configured.generateProject({ @@ -317,8 +295,6 @@ describe("lib/configured", function() { }); it(".getProject is able to get a github url and npm install package.json's docDependencies", function() { - this.timeout(20000); - return rmdir(path.join(__dirname, "test", "tmp")) .then(function() { return configured.getProject({