diff options
Diffstat (limited to 'devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js')
-rw-r--r-- | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js b/devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js index a5836ad50a..925ab62479 100644 --- a/devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js +++ b/devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_telemetry_connection_attempt.js @@ -54,7 +54,7 @@ add_task(async function testSuccessfulConnectionAttempt() { add_task(async function testFailedConnectionAttempt() { const { doc, mocks, runtimeId, sessionId, tab } = await setupConnectionAttemptTest(); - mocks.runtimeClientFactoryMock.createClientForRuntime = async runtime => { + mocks.runtimeClientFactoryMock.createClientForRuntime = async () => { throw new Error("failed"); }; @@ -168,8 +168,8 @@ add_task(async function testCancelledConnectionAttempt() { await setupConnectionAttemptTest(); info("Simulate a connection timeout"); - mocks.runtimeClientFactoryMock.createClientForRuntime = async runtime => { - await new Promise(r => {}); + mocks.runtimeClientFactoryMock.createClientForRuntime = async () => { + await new Promise(() => {}); }; info("Click on the connect button and wait for the error message"); |