Skip to content

Commit

Permalink
Removes unneeded test case
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Oct 28, 2023
1 parent e101c2d commit b3a810c
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions __test__/auth/SessionLockingAccessTokenService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,33 +47,3 @@ test("It releases the acquired lock", async () => {
await sut.getAccessToken()
expect(didReleaseLock).toBeTruthy()
})

test.only("It performs operations sequentially", async () => {
let didReleaseLock = false
const sut = new SessionLockingAccessTokenService({
async getUserId() {
return "foo"
}
}, {
makeMutex() {
return {
async acquire() {},
async release() {
didReleaseLock = true
}
}
}
}, {
async getAccessToken() {
return ""
}
})
await Promise.all([
sut.getAccessToken(),
sut.getAccessToken(),
sut.getAccessToken(),
sut.getAccessToken(),
sut.getAccessToken()
])
expect(didReleaseLock).toBeTruthy()
})

0 comments on commit b3a810c

Please sign in to comment.