Pārlūkot izejas kodu

wrapped content of setTimeout function in tap.test

Gleb Urvanov 4 gadi atpakaļ
vecāks
revīzija
5ecff85172

+ 4 - 4
tests/network-tests/src/constantinople/tests/impl/setTimeout.ts

@@ -2,8 +2,8 @@ import tap from 'tap';
 import { ApiWrapper } from '../../utils/apiWrapper';
 
 export async function setTimeout(apiWrapper: ApiWrapper, durationInBlocks: number) {
-  // tap.test('retrieving time necessary for the test', async () => {
-  const durationInMillis = (await apiWrapper.getBlockDuration()).muln(durationInBlocks).toNumber();
-  tap.setTimeout(durationInMillis);
-  // });
+  tap.test('retrieving time necessary for the test', async () => {
+    const durationInMillis = (await apiWrapper.getBlockDuration()).muln(durationInBlocks).toNumber();
+    tap.setTimeout(durationInMillis);
+  });
 }