From cbd61f35d835bd014adb6e37b42f7a71d2508b3b Mon Sep 17 00:00:00 2001 From: Edwin Takahashi Date: Mon, 30 Aug 2021 12:57:54 -0700 Subject: [PATCH] Remove postfix of random integer. --- packages/calypso-e2e/src/media-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/calypso-e2e/src/media-helper.ts b/packages/calypso-e2e/src/media-helper.ts index 40bde34e2f310..d6293d875e258 100644 --- a/packages/calypso-e2e/src/media-helper.ts +++ b/packages/calypso-e2e/src/media-helper.ts @@ -3,7 +3,7 @@ import fs from 'fs/promises'; import os from 'os'; import path from 'path'; import config from 'config'; -import { getTimestamp, getRandomInteger } from './data-helper'; +import { getTimestamp } from './data-helper'; /** * Interface for holding various parts of a filepath. @@ -87,7 +87,7 @@ export async function createTestFile( } // Generate a filename using current timestamp and a pseudo-randomly generated integer. - let filename = `${ getTimestamp() }-${ getRandomInteger( 100, 999 ) }`; + let filename = getTimestamp(); // If `postfix` is defined, use that as part of the final filename. if ( postfix ) { filename += `-${ postfix }`;