Skip to content

Commit

Permalink
Add random suffix to the temporary video name to avoid concurrent ses…
Browse files Browse the repository at this point in the history
…sions conflicts (appium#621)
  • Loading branch information
Mykola Mokhnach authored Feb 5, 2018
1 parent 23c7b2f commit c571467
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/commands/recordscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ commands.startRecordingScreen = async function (options = {}) {
this._recentScreenRecordingPath = null;
}

const localPath = await tempDir.path({prefix: 'appium', suffix: DEFAULT_EXT});
const localPath = await tempDir.path({
prefix: `appium_${Math.random().toString(16).substring(2, 8)}`,
suffix: DEFAULT_EXT
});

let binaryName;
let args;
Expand Down

0 comments on commit c571467

Please sign in to comment.