Skip to content

Commit

Permalink
Merge pull request #435 from Inist-CNRS/fix-fusible
Browse files Browse the repository at this point in the history
fix: 🐛 avoid lockx
  • Loading branch information
touv authored Dec 13, 2024
2 parents c5005c0 + f1be254 commit ba2b419
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/fusible.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const disableFusible = (fusible) => new Promise((next, cancel) => {
return next(true);
});
}
return next(true);
});
return true;
});
Expand Down
4 changes: 4 additions & 0 deletions packages/core/test/fusible.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ test('fusible', async () => {
expect(isCheckOK).toBeTruthy();
const isDisable = await disableFusible(fusible);
expect(isDisable).toBeTruthy();
const isDisableBIS = await disableFusible(fusible);
expect(isDisableBIS).toBeTruthy();
const isCheckKO = await checkFusible(fusible);
expect(isCheckKO).not.toBeTruthy();
const isCheckKOBIS = await checkFusible();
expect(isCheckKOBIS).not.toBeTruthy();
});

0 comments on commit ba2b419

Please sign in to comment.