Skip to content

Commit d126704

Browse files
committed
fixup! avoid user directories; keep explicit touches
1 parent 16029dd commit d126704

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

run.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@ export async function run( {
8282
report: async( message ) => {
8383
const reportId = message.id;
8484
const report = reports[ reportId ];
85-
touchBrowser( report.browser );
8685

8786
switch ( message.type ) {
87+
case "ack":
88+
touchBrowser( report.browser );
89+
break;
8890
case "testEnd": {
91+
touchBrowser( report.browser );
8992
const errorMessage = reportTest( message.data, report );
9093
pendingErrors[ reportId ] ??= Object.create( null );
9194
if ( errorMessage ) {
@@ -108,12 +111,14 @@ export async function run( {
108111
break;
109112
}
110113
case "error": {
114+
touchBrowser( report.browser );
111115
const errorMessage = reportError( message.data );
112116
pendingErrors[ reportId ] ??= Object.create( null );
113117
pendingErrors[ reportId ][ message.data.message ] = errorMessage;
114118
break;
115119
}
116120
case "runEnd": {
121+
touchBrowser( report.browser );
117122
const { failed, total } = reportEnd( message.data, reports[ reportId ] );
118123
report.total = total;
119124

selenium/createDriver.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default async function createDriver( { browserName, headless, url, verbos
2323

2424
const chromeOptions = new Chrome.Options();
2525
chromeOptions.addArguments( "--enable-chrome-browser-cloud-management" );
26+
chromeOptions.addArguments( "--no-sandbox" );
2627

2728
// Alter the chrome binary path if
2829
// the CHROME_BIN environment variable is set

0 commit comments

Comments
 (0)