Skip to content

Commit

Permalink
style: for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 4, 2023
1 parent 05ad3c4 commit cfad735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/boot/test/bootstrapTests/bench-vaults-performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ test.after.always(t => t.context.shutdown());

const rows = [];
const perfObserver = new PerformanceObserver(items => {
items.getEntries().forEach(entry => {
for (const entry of items.getEntries()) {
// @ts-expect-error cast
const { vaultsOpened, round } = entry.detail;
rows.push({
name: `${round}:${vaultsOpened}`,
durationMs: entry.duration,
avgPerVaultMs: entry.duration / vaultsOpened,
});
});
}
});
perfObserver.observe({ entryTypes: ['measure'] });

Expand Down
8 changes: 4 additions & 4 deletions packages/boot/test/bootstrapTests/test-vaults-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ test.serial('audit bootstrap exports', async t => {
return anObj;
};
const m = makeMarshal(undefined, saveBootstrapIface);
oids.forEach(oid => {
for (const oid of oids) {
for (const [_ix, ev] of transcript) {
for (const sc of ev.sc) {
if (sc.s[0] === 'send') {
Expand All @@ -240,7 +240,7 @@ test.serial('audit bootstrap exports', async t => {
}
}
}
});
}

const exportedInterfaces = Object.fromEntries(
[...toIface.values()].map(iface => [iface.replace(/^Alleged: /, ''), true]),
Expand Down Expand Up @@ -485,9 +485,9 @@ test.serial(
'vattp',
'timer',
].map(vatNamed);
swingsetVats.forEach(vatID => {
for (const vatID of swingsetVats) {
delete todo[vatID];
});
}

// TODO? test that powerStore is in baggage?
// by inspection, we see that it is:
Expand Down

0 comments on commit cfad735

Please sign in to comment.