From 1abce5ac13c37043b947ddfd23a09998471dda18 Mon Sep 17 00:00:00 2001 From: Guillem Cordoba Date: Sun, 10 Oct 2021 17:36:20 +0200 Subject: [PATCH] Fixed exercise test --- 1.basic/4.source-chain/exercise/tests/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.basic/4.source-chain/exercise/tests/src/index.ts b/1.basic/4.source-chain/exercise/tests/src/index.ts index fb7b640..68c38ab 100644 --- a/1.basic/4.source-chain/exercise/tests/src/index.ts +++ b/1.basic/4.source-chain/exercise/tests/src/index.ts @@ -19,7 +19,7 @@ const installation: InstallAgentsHapps = [ const sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(null), ms)); -const millisToTimestamp = (ms) => [Math.floor(ms / 1000), ms % 1000]; +const millisToTimestamp = (ms) => ms * 1_000; const orchestrator = new Orchestrator();