Adds timeout as an option to Sandbox.createApp

This commit is contained in:
filipenevola
2021-01-14 15:34:17 -04:00
parent 04b5d9b33c
commit dc2b2ca1e1
2 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,8 @@ selftest.define("'meteor update' alters constraints in `.meteor/packages`", () =
});
s.createApp("myapp", "very-simple-app-with-no-package-constraints", {
release: DEFAULT_RELEASE_TRACK + '@v1'
release: DEFAULT_RELEASE_TRACK + '@v1',
timeout: 300,
});
s.cd("myapp");

View File

@@ -83,7 +83,7 @@ export default class Sandbox {
this.warehouse = files.pathJoin(this.root, 'tropohouse');
this._makeWarehouse(this.options.warehouse);
}
const meteorScript = process.platform === "win32" ? "meteor.bat" : "meteor";
// Figure out the 'meteor' to run
@@ -211,7 +211,7 @@ export default class Sandbox {
// multiple calls to createApp with the same template get the same cache?
// This is a little tricky because isopack-buildinfo.json uses absolute
// paths.
run.waitSecs(120);
run.waitSecs(options.timeout || 120);
run.expectExit(0);
});
}