style: swiftformat macos swift files
This commit is contained in:
@@ -149,8 +149,7 @@ final class OnboardingWizardModel {
|
|||||||
onboardingWizardLogger.error("wizard step decode failed")
|
onboardingWizardLogger.error("wizard step decode failed")
|
||||||
}
|
}
|
||||||
if res.done { self.currentStep = nil }
|
if res.done { self.currentStep = nil }
|
||||||
if res.done || status == "done" || status == "cancelled" || status == "error"
|
if res.done || status == "done" || status == "cancelled" || status == "error" {
|
||||||
{
|
|
||||||
self.sessionId = nil
|
self.sessionId = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,17 +22,17 @@ struct WizardCliOptions {
|
|||||||
case "--json":
|
case "--json":
|
||||||
opts.json = true
|
opts.json = true
|
||||||
case "--url":
|
case "--url":
|
||||||
opts.url = nextValue(args, index: &i)
|
opts.url = self.nextValue(args, index: &i)
|
||||||
case "--token":
|
case "--token":
|
||||||
opts.token = nextValue(args, index: &i)
|
opts.token = self.nextValue(args, index: &i)
|
||||||
case "--password":
|
case "--password":
|
||||||
opts.password = nextValue(args, index: &i)
|
opts.password = self.nextValue(args, index: &i)
|
||||||
case "--mode":
|
case "--mode":
|
||||||
if let value = nextValue(args, index: &i) {
|
if let value = nextValue(args, index: &i) {
|
||||||
opts.mode = value
|
opts.mode = value
|
||||||
}
|
}
|
||||||
case "--workspace":
|
case "--workspace":
|
||||||
opts.workspace = nextValue(args, index: &i)
|
opts.workspace = self.nextValue(args, index: &i)
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,22 +19,19 @@ import Testing
|
|||||||
error: "gateway connect failed",
|
error: "gateway connect failed",
|
||||||
elapsedMs: 12,
|
elapsedMs: 12,
|
||||||
bot: nil,
|
bot: nil,
|
||||||
webhook: nil
|
webhook: nil),
|
||||||
),
|
lastProbeAt: 0),
|
||||||
lastProbeAt: 0
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
providerOrder: ["whatsapp"],
|
providerOrder: ["whatsapp"],
|
||||||
providerLabels: ["whatsapp": "WhatsApp"],
|
providerLabels: ["whatsapp": "WhatsApp"],
|
||||||
heartbeatSeconds: 60,
|
heartbeatSeconds: 60,
|
||||||
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: [])
|
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: []))
|
||||||
)
|
|
||||||
|
|
||||||
let store = HealthStore.shared
|
let store = HealthStore.shared
|
||||||
store.__setSnapshotForTest(snap, lastError: nil)
|
store.__setSnapshotForTest(snap, lastError: nil)
|
||||||
|
|
||||||
switch store.state {
|
switch store.state {
|
||||||
case .degraded(let message):
|
case let .degraded(message):
|
||||||
#expect(!message.isEmpty)
|
#expect(!message.isEmpty)
|
||||||
default:
|
default:
|
||||||
Issue.record("Expected degraded state when probe fails for linked provider")
|
Issue.record("Expected degraded state when probe fails for linked provider")
|
||||||
@@ -43,4 +40,3 @@ import Testing
|
|||||||
#expect(store.summaryLine.contains("probe degraded"))
|
#expect(store.summaryLine.contains("probe degraded"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user