From bba6b617a3ad682ebce827bc2566a50ae8ee97bb Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Wed, 25 Mar 2015 15:05:34 -0700 Subject: [PATCH] Add fake builds in the test --- tools/tests/wipe-all-packages.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/tests/wipe-all-packages.js b/tools/tests/wipe-all-packages.js index dd0b788498..4d35de992b 100644 --- a/tools/tests/wipe-all-packages.js +++ b/tools/tests/wipe-all-packages.js @@ -31,6 +31,13 @@ selftest.define("wipe all packages", function () { containsPlugins: false }; }; + var meteorToolBuild = function (v) { + return { + buildArchitectures: [archinfo.host()], + versionId: 'VID' + v.replace(/\./g, ''), + _id: utils.randomToken() + }; + }; // insert the new tool versions into the catalog s.warehouseOfficialCatalog.insertData({ @@ -39,7 +46,7 @@ selftest.define("wipe all packages", function () { collections: { packages: [], versions: [meteorToolVersion('33.0.1'), meteorToolVersion('33.0.2'), meteorToolVersion('33.0.3')], - builds: [], + builds: [meteorToolBuild('33.0.1'), meteorToolBuild('33.0.2'), meteorToolBuild('33.0.3')], releaseTracks: [], releaseVersions: [] }