Skip to content

Commit 3afd31b

Browse files
fmt
1 parent 2a75d16 commit 3afd31b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

e2e/playwright/test-network-and-connection-issues.spec.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ profile001 = startProfile(sketch001, at = [0.0, 0.0])
313313
// We should now be paused. To the user, it should appear we're still
314314
// connected.
315315
await networkToggle.hover()
316-
await expect(networkToggleConnectedText.or(networkToggleWeakText)).toBeVisible()
316+
await expect(
317+
networkToggleConnectedText.or(networkToggleWeakText)
318+
).toBeVisible()
317319

318320
const center = {
319321
x: dim.width / 2,
@@ -323,7 +325,7 @@ profile001 = startProfile(sketch001, at = [0.0, 0.0])
323325
let probe = { x: 0, y: 0 }
324326

325327
// ... and the model's still visibly there
326-
probe.x = center.x + (dim.width / 100)
328+
probe.x = center.x + dim.width / 100
327329
probe.y = center.y
328330
await scene.expectPixelColor(TEST_COLORS.GREY, probe, 15)
329331
probe = { ...center }
@@ -335,7 +337,7 @@ profile001 = startProfile(sketch001, at = [0.0, 0.0])
335337
// Check the pixel a couple times as it reconnects.
336338
// NOTE: Remember, idle behavior is still on at this point -
337339
// if this test takes longer than 5s shit WILL go south!
338-
probe.x = center.x + (dim.width / 100)
340+
probe.x = center.x + dim.width / 100
339341
probe.y = center.y
340342
await scene.expectPixelColor(TEST_COLORS.GREY, probe, 15)
341343
await page.waitForTimeout(1000)
@@ -344,7 +346,9 @@ profile001 = startProfile(sketch001, at = [0.0, 0.0])
344346

345347
// Ensure we're still connected
346348
await networkToggle.hover()
347-
await expect(networkToggleConnectedText.or(networkToggleWeakText)).toBeVisible()
349+
await expect(
350+
networkToggleConnectedText.or(networkToggleWeakText)
351+
).toBeVisible()
348352
})
349353
}
350354
)

src/components/EngineStream.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ export const EngineStream = (props: {
211211
const connectionCheckIntervalId = setInterval(() => {
212212
// SKIP DURING TESTS BECAUSE IT WILL MESS WITH REUSING THE
213213
// ELECTRON INSTANCE.
214-
if (TEST) { return }
215-
214+
if (TEST) {
215+
return
216+
}
217+
216218
// Don't try try to restart if we're already connected!
217219
const hasEngineConnectionInst = engineCommandManager.engineConnection
218220
const isDisconnected =

0 commit comments

Comments
 (0)