1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00

limit x server check to CI (#12099)

This commit is contained in:
PeterYinusa 2021-09-14 18:03:04 +02:00 committed by GitHub
parent 3e0d79d251
commit 34f2d3e27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,10 @@ describe('MetaMask', function () {
dappServer.on('listening', resolve);
dappServer.on('error', reject);
});
if (process.env.SELENIUM_BROWSER === 'chrome') {
if (
process.env.SELENIUM_BROWSER === 'chrome' &&
process.env.CI === 'true'
) {
await ensureXServerIsRunning();
}
const result = await buildWebDriver();