Skip to content

Commit

Permalink
fix: make more tests independent
Browse files Browse the repository at this point in the history
  • Loading branch information
Milena-Czierlinski committed Dec 13, 2024
1 parent 1979373 commit be734fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/app-runtime/test/runtime/Offboarding.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ describe("Offboarding", function () {
let localAccount2Id: string;
let device2Id: string;

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

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

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

afterAll(async function () {
afterEach(async function () {
await runtime.stop();
});

Expand Down

0 comments on commit be734fc

Please sign in to comment.