Skip to content

Commit

Permalink
chore(zoe): stop using install-metering-and-ses
Browse files Browse the repository at this point in the history
The tests that actually need to exercise metering now use `xs-worker` instead
of enabling global metering. This speeds those tests up by 4x-6x.

refs #3373
  • Loading branch information
warner committed Jun 22, 2021
1 parent d77c5fe commit 8c66401
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/zoe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
},
"devDependencies": {
"@agoric/babel-standalone": "^7.14.3",
"@agoric/install-metering-and-ses": "^0.2.15",
"@agoric/install-ses": "^0.5.15",
"ava": "^3.12.1",
"esm": "agoric-labs/esm#Agoric-built",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// https://github.com/endojs/endo/issues/768
import '@agoric/babel-standalone';
// eslint-disable-next-line import/no-extraneous-dependencies
import '@agoric/install-metering-and-ses';
import '@agoric/install-ses';
// eslint-disable-next-line import/no-extraneous-dependencies
import test from 'ava';

Expand All @@ -28,6 +28,7 @@ const generateBundlesP = Promise.all(

async function main(argv) {
const config = await loadBasedir(__dirname);
config.defaultManagerType = 'xs-worker';
await generateBundlesP;
const controller = await buildVatController(config, argv);
await controller.run();
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/test/swingsetTests/makeKind/test-makeKind.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://github.com/endojs/endo/issues/768
import '@agoric/babel-standalone';
// eslint-disable-next-line import/no-extraneous-dependencies
import '@agoric/install-metering-and-ses';
import '@agoric/install-ses';
// eslint-disable-next-line import/no-extraneous-dependencies
import test from 'ava';
// eslint-disable-next-line import/no-extraneous-dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://github.com/endojs/endo/issues/768
import '@agoric/babel-standalone';
// eslint-disable-next-line import/no-extraneous-dependencies
import '@agoric/install-metering-and-ses';
import '@agoric/install-ses';
// eslint-disable-next-line import/no-extraneous-dependencies
import test from 'ava';
import { loadBasedir, buildVatController } from '@agoric/swingset-vat';
Expand Down Expand Up @@ -33,6 +33,7 @@ const generateBundlesP = Promise.all(

async function main(argv) {
const config = await loadBasedir(__dirname);
config.defaultManagerType = 'xs-worker';
await generateBundlesP;
const controller = await buildVatController(config, argv);
await controller.run();
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/test/swingsetTests/zoe/test-zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// https://github.com/endojs/endo/issues/768
import '@agoric/babel-standalone';
// eslint-disable-next-line import/no-extraneous-dependencies
import '@agoric/install-metering-and-ses';
import '@agoric/install-ses';
// eslint-disable-next-line import/no-extraneous-dependencies
import test from 'ava';
import { buildVatController, buildKernelBundles } from '@agoric/swingset-vat';
Expand Down

0 comments on commit 8c66401

Please sign in to comment.