Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ import Testing
let identity = UpdateBuildIdentity(bundleIdentifier: "com.cmuxterm.app.debug.install-check", shortVersion: "1.0.0",
build: build, minimumSystemVersion: nil,
infoFeedURL: "https://files-next.cmux.com/nightly-next/appcast-arm64.xml", hasPublicKey: false)
return UpdaterService(identity: identity, policy: ManagedUpdatePolicy { false }, defaults: defaults,
enableSparkle: false, recordsUpdates: false, now: { time })
let updater = UpdaterService(identity: identity, policy: ManagedUpdatePolicy { false }, defaults: defaults,
enableSparkle: false, recordsUpdates: false, now: { time })
// The relaunch reads the frontmost app (``UpdaterService/frontmost``); AppKit's answer needs
// an NSApplication, which a test process that made none lacks (`NSApp` is nil and the read
// traps). This app is frontmost, as when a person clicks Restart to Update.
updater.frontmost = { UpdateFrontmostApp(isThisApp: true, pid: 1, bundleID: "com.cmuxterm.app.debug.install-check") }
return updater
}

@Test func aLaunchOnTheOldBuildIsAFailedInstall() {
Expand Down
Loading