Skip to content

Commit

Permalink
Remove postfix of random integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
worldomonation committed Aug 30, 2021
1 parent 9c61b49 commit cbd61f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/calypso-e2e/src/media-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 }`;
Expand Down

0 comments on commit cbd61f3

Please sign in to comment.