From 496235b735add0d73d2433ddb543be8e6ef763bb Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 23 Nov 2022 17:54:28 -0700 Subject: [PATCH] Resolve after cleanup, see https://github.com/phetsims/perennial/issues/268 --- js/grunt/phet-io/generatePhetioAPI.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/grunt/phet-io/generatePhetioAPI.js b/js/grunt/phet-io/generatePhetioAPI.js index a311b5d9d..ccbdf9a51 100644 --- a/js/grunt/phet-io/generatePhetioAPI.js +++ b/js/grunt/phet-io/generatePhetioAPI.js @@ -68,6 +68,8 @@ module.exports = async ( repo, fromBuiltVersion = false ) => { if ( msg.text().indexOf( '"phetioFullAPI": true,' ) >= 0 ) { const fullAPI = msg.text(); + await page.close(); + await browser.close(); resolve( fullAPI ); } @@ -91,6 +93,5 @@ module.exports = async ( repo, fromBuiltVersion = false ) => { const url = `http://localhost:${port}/${repo}/${relativePath}?ea&brand=phet-io&phetioStandalone&phetioPrintAPI`; page.goto( url ).catch( reject ); } ); - await browser.close(); return result; }; \ No newline at end of file