2
2
// TODO Remove babel-standalone preinitialization
3
3
// https://github.com/endojs/endo/issues/768
4
4
import '@agoric/babel-standalone' ;
5
- import '@agoric/install-metering-and- ses' ;
5
+ import '@agoric/install-ses' ;
6
6
import test from 'ava' ;
7
7
import path from 'path' ;
8
8
import bundleSource from '@agoric/bundle-source' ;
@@ -19,8 +19,9 @@ test.before(async t => {
19
19
t . context . data = { kernelBundles, trivialBundle } ;
20
20
} ) ;
21
21
22
- async function main ( t , mode ) {
22
+ async function main ( t , mode , defaultManagerType = 'local' ) {
23
23
const config = await loadBasedir ( __dirname ) ;
24
+ config . defaultManagerType = defaultManagerType ;
24
25
const { kernelBundles, trivialBundle } = t . context . data ;
25
26
const argv = [ mode , trivialBundle ] ;
26
27
const controller = await buildVatController ( config , argv , { kernelBundles } ) ;
@@ -47,6 +48,6 @@ const contractExhaustedGolden = [
47
48
] ;
48
49
49
50
test ( 'exhaustion' , async t => {
50
- const dump = await main ( t , 'exhaust' ) ;
51
+ const dump = await main ( t , 'exhaust' , 'xs-worker' ) ;
51
52
t . deepEqual ( dump . log , contractExhaustedGolden ) ;
52
53
} ) ;
0 commit comments