|
@@ -2,8 +2,8 @@ import tap from 'tap';
|
|
import { ApiWrapper } from '../../utils/apiWrapper';
|
|
import { ApiWrapper } from '../../utils/apiWrapper';
|
|
|
|
|
|
export async function setTimeout(apiWrapper: ApiWrapper, durationInBlocks: number) {
|
|
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);
|
|
|
|
+ });
|
|
}
|
|
}
|