refactor: code cleanups
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 17 Sep 2023 12:10:38 +0000 (14:10 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 17 Sep 2023 12:10:38 +0000 (14:10 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmark-utils.mjs

index 35515c5197f3c333db7286726a8907f2a97d28e7..59521b614ebee8564dd93e258bac032bba210ddb 100644 (file)
@@ -93,5 +93,5 @@ export function generateRandomObject (
  * @returns
  */
 export async function sleep (ms) {
-  return new Promise(resolve => setTimeout(resolve, ms))
+  return await new Promise(resolve => setTimeout(resolve, ms))
 }