Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): report ffmpeg errors when opening Android emulators #18784

Mergedtris203(GitHub profile, opens in a new tab)merged 11 commits intomain fromrefs/pull/18784/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 147 additions and 18 deletions (loading 5).

x
0 of 8 viewed, 8 left
7 additions and 2 deletionsapps/server/src/device/DeviceMultiHost.test.tsModified
View file
@@ -12,11 +12,16 @@
it.effect("keeps hosts independent when serials collide and another host fails", () =>
Effect.gen(function* () {
const host = (id: string, failed = false): DeviceHost.DeviceHost["Service"] => {
- const ready = {
+ const ready: DeviceHost.DeviceHostAgentReady = {
nodePath: process.execPath,
hub: { origin: `http://${id}` },
agentDevice: { baseUrl: `http://${id}`, token: "test", entryPath: "/agent-device" },
- run: () => Effect.succeed({ stdout: "", stderr: "", code: 0 }),
+ run: (command) =>
+ Effect.succeed({
+ stdout: command === "emulator" ? "" : " V....D libx264",
+ stderr: "",
+ code: 0,
+ }),
helpers: { serveSimAxSettings: null, serveSimCli: null },
};
return {
113 additions and 16 deletionsapps/server/src/device/DeviceService.test.tsModified
View file
@@ -5,6 +5,7 @@
DeviceOperationError,
LOCAL_DEVICE_HOST_ID,
ThreadId,
+ type DeviceSummary,
type DeviceServiceState,
type ServerSettings as Settings,