Skip to content

Commit

Permalink
test: refine AsyncLock runExclusive() expectation
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Aug 4, 2024
1 parent 2c8195f commit bff96f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/AsyncLock.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ await describe('AsyncLock test suite', async () => {
for (let i = 0; i < runs; i++) {
AsyncLock.runExclusive(AsyncLockType.configuration, fn)
.then(() => {
expect(executed).toEqual(new Array(count).fill(0).map((_, i) => ++i))
expect(executed).toStrictEqual(new Array(count).fill(0).map((_, i) => ++i))
return undefined
})
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable
Expand All @@ -36,7 +36,7 @@ await describe('AsyncLock test suite', async () => {
for (let i = 0; i < runs; i++) {
AsyncLock.runExclusive(AsyncLockType.configuration, asyncFn)
.then(() => {
expect(executed).toEqual(new Array(count).fill(0).map((_, i) => ++i))
expect(executed).toStrictEqual(new Array(count).fill(0).map((_, i) => ++i))
return undefined
})
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable
Expand Down

0 comments on commit bff96f3

Please sign in to comment.