Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

test(meeting): match pipeline version and fail-closed eras

altic-dev6887099e0240
diff --git a/Tests/FluidDictationIntegrationTests/MeetingEraBatchTests.swift b/Tests/FluidDictationIntegrationTests/MeetingEraBatchTests.swift
index 0f3d9b6a..ae1c6110 100644
--- a/Tests/FluidDictationIntegrationTests/MeetingEraBatchTests.swift
+++ b/Tests/FluidDictationIntegrationTests/MeetingEraBatchTests.swift
@@ -246,7 +246,7 @@ final class MeetingEraBatchTests: XCTestCase {
XCTAssertEqual(eras[0].method, .voiceProcessing)
}
- func testUnknownEraMethodIsToleratedBySkippingThatEra() throws {
+ func testUnknownEraMethodFailsClosedToSingleUnprotectedEra() throws {
let legacyJSON: [String: Any] = [
"id": UUID().uuidString,
"kind": "microphone",
@@ -265,7 +265,9 @@ final class MeetingEraBatchTests: XCTestCase {
let data = try JSONSerialization.data(withJSONObject: legacyJSON)
let track = try JSONDecoder().decode(MeetingAudioTrack.self, from: data)
let eras = try XCTUnwrap(track.captureEras)
- XCTAssertEqual(eras.count, 2, "the unrecognized era is skipped, not defaulted, and the rest of the session still decodes")
- XCTAssertEqual(eras.map(\.startSeconds), [0, 60])
+ XCTAssertEqual(eras.count, 1, "an unrecognized era fails closed: the whole track collapses to one unprotected era")
+ XCTAssertEqual(eras[0].method, .avCaptureSession)
+ XCTAssertEqual(eras[0].echoProtection, .unprotected)
+ XCTAssertEqual(eras[0].startSeconds, 0)
}
}
diff --git a/Tests/FluidDictationIntegrationTests/MeetingPhase4Tests.swift b/Tests/FluidDictationIntegrationTests/MeetingPhase4Tests.swift
index 68dd1a2e..84acd291 100644
--- a/Tests/FluidDictationIntegrationTests/MeetingPhase4Tests.swift
+++ b/Tests/FluidDictationIntegrationTests/MeetingPhase4Tests.swift
@@ -165,8 +165,8 @@ final class MeetingPhase4ClassificationTests: XCTestCase {
// MARK: - 7. pipelineVersion bump
- func testPipelineVersionIsSeven() {
- XCTAssertEqual(MeetingProcessingPipeline.pipelineVersion, 7)
+ func testPipelineVersionIsThirteen() {
+ XCTAssertEqual(MeetingProcessingPipeline.pipelineVersion, 13)
}
// MARK: - 9. Store round-trip: a decoded track drives the classification branch