Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
g. nicholas d'andrea committed Oct 27, 2020
1 parent e9e76cf commit 1895941
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/truffle/test/scenarios/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("truffle build [ @standalone ]", () => {
let config, project;

describe("when there is no build script in config", () => {
beforeEach("set up sandbox", function() {
beforeEach("set up sandbox", function () {
this.timeout(10000);
project = path.join(
__dirname,
Expand Down Expand Up @@ -37,7 +37,7 @@ describe("truffle build [ @standalone ]", () => {
});

describe("when there is a proper build config", () => {
beforeEach("set up sandbox", function() {
beforeEach("set up sandbox", function () {
this.timeout(10000);
project = path.join(
__dirname,
Expand All @@ -48,15 +48,16 @@ describe("truffle build [ @standalone ]", () => {
config.logger = logger;
});
});
it("runs the build script", async () => {
it("runs the build script", async function () {
this.timeout(10000);
await CommandRunner.run("build", config);
const output = logger.contents();
assert(output.includes("'this is the build script'"));
});
});

describe("when there is an object in the build config", () => {
beforeEach("set up sandbox", function() {
beforeEach("set up sandbox", function () {
this.timeout(10000);
project = path.join(
__dirname,
Expand All @@ -67,7 +68,8 @@ describe("truffle build [ @standalone ]", () => {
config.logger = logger;
});
});
it("tells the user it shouldn't use an object", async () => {
it("tells the user it shouldn't use an object", async function () {
this.timeout(10000);
try {
await CommandRunner.run("build", config);
assert(false, "The process should have exited with code 1");
Expand Down

0 comments on commit 1895941

Please sign in to comment.