Skip to content

Commit

Permalink
chore(swingset): force GC on some intermittently-failing tests
Browse files Browse the repository at this point in the history
We don't understand why this is necessary, but hopefully it will make
these flaky tests behave more consistently.

refs #4936
  • Loading branch information
warner committed Mar 30, 2022
1 parent 7f6612d commit 5bc5bf7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/SwingSet/test/virtualObjects/test-virtualObjectGC.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ async function voLifeCycleTest1(t, isf) {
t,
buildRootObject,
'bob',
true,
);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');
Expand Down Expand Up @@ -688,7 +689,7 @@ test.serial('VO lifecycle 1 faceted', async t => {
// lERV -> LERV -> lERV -> leRV -> LeRV -> leRV -> LeRV -> LerV
async function voLifeCycleTest2(t, isf) {
const { v, dispatchMessage, dispatchDropExports, dispatchRetireExports } =
await setupTestLiveslots(t, buildRootObject, 'bob');
await setupTestLiveslots(t, buildRootObject, 'bob', true);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');

Expand Down Expand Up @@ -762,7 +763,7 @@ test.serial('VO lifecycle 2 faceted', async t => {
// test 3: lerv -> Lerv -> LerV -> LERV -> LeRV -> leRV -> lerV -> lerv
async function voLifeCycleTest3(t, isf) {
const { v, dispatchMessage, dispatchDropExports, dispatchRetireExports } =
await setupTestLiveslots(t, buildRootObject, 'bob');
await setupTestLiveslots(t, buildRootObject, 'bob', true);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');

Expand Down Expand Up @@ -807,6 +808,7 @@ async function voLifeCycleTest4(t, isf) {
t,
buildRootObject,
'bob',
true,
);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');
Expand Down Expand Up @@ -837,7 +839,7 @@ test.serial('VO lifecycle 4 faceted', async t => {
// test 5: lerv -> Lerv -> LERv -> LeRv -> Lerv -> lerv
async function voLifeCycleTest5(t, isf) {
const { v, dispatchMessage, dispatchDropExports, dispatchRetireExports } =
await setupTestLiveslots(t, buildRootObject, 'bob');
await setupTestLiveslots(t, buildRootObject, 'bob', true);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');

Expand Down Expand Up @@ -874,6 +876,7 @@ async function voLifeCycleTest6(t, isf) {
t,
buildRootObject,
'bob',
true,
);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');
Expand Down Expand Up @@ -923,6 +926,7 @@ async function voLifeCycleTest7(t, isf) {
t,
buildRootObject,
'bob',
true,
);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');
Expand Down Expand Up @@ -964,6 +968,7 @@ async function voLifeCycleTest8(t, isf) {
t,
buildRootObject,
'bob',
true,
);
const thing = thingVref(isf, 2);
const thingf = facetRef(isf, thing, '1');
Expand Down

0 comments on commit 5bc5bf7

Please sign in to comment.