Skip to content

Commit

Permalink
refactor(test utils): replace sleep promise implementation with Nod…
Browse files Browse the repository at this point in the history
…ejs timers (#414)
  • Loading branch information
endv-bogdanb authored and dgonzalezr committed Aug 18, 2023
1 parent 80d7b2f commit fa03236
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/bee-q/src/shared/test-utils/sleep.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
import { promisify } from 'util';

/**
* Delay function which returns a promise with setTimeout as callback function
* @returns {void}
*/
export const sleep = promisify(setTimeout);
export { setTimeout as sleep } from 'timers/promises';

0 comments on commit fa03236

Please sign in to comment.