Skip to content

Commit

Permalink
fix: backend test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Apr 23, 2024
1 parent d451c2e commit 68313c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ describe('ConnectionsManagerService', () => {
})

it('community is only launched once', async () => {
await localDbService.setCommunity(community)
await localDbService.setCurrentCommunityId(community.id)
const launchCommunityPayload = {
community: community,
network: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ beforeEach(async () => {

const pskBase64 = Libp2pService.generateLibp2pPSK().psk
await localDbService.put(LocalDBKeys.PSK, pskBase64)
await localDbService.put(LocalDBKeys.CURRENT_COMMUNITY_ID, community.id)
await localDbService.setCommunity(community)
})

afterEach(async () => {
Expand Down

0 comments on commit 68313c2

Please sign in to comment.