Skip to content

Commit be734fc

Browse files
fix: make more tests independent
1 parent 1979373 commit be734fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/app-runtime/test/runtime/Offboarding.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ describe("Offboarding", function () {
1010
let localAccount2Id: string;
1111
let device2Id: string;
1212

13-
beforeAll(async function () {
13+
beforeEach(async function () {
1414
// as we can't pop up multiple runtimes we have to allow multiple accounts with
1515
// the same address to test offboarding
1616
const configOverride = { allowMultipleAccountsWithSameAddress: true };
1717
runtime = await TestUtil.createRuntime(configOverride);
1818
await runtime.start();
19-
});
2019

21-
beforeEach(async function () {
2220
const [localAccount1] = await TestUtil.provideAccounts(runtime, 1);
2321
services1 = await runtime.getServices(localAccount1.id);
2422

@@ -35,7 +33,7 @@ describe("Offboarding", function () {
3533
await services1.transportServices.account.syncDatawallet();
3634
});
3735

38-
afterAll(async function () {
36+
afterEach(async function () {
3937
await runtime.stop();
4038
});
4139

0 commit comments

Comments
 (0)