Skip to content

Commit c9b8e3d

Browse files
committed
Update test for CI
1 parent d9c821e commit c9b8e3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/VitalLensTests/StreamProcessorTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ final class StreamProcessorTests: XCTestCase {
220220
func testResilience_MaxRetries_ResetsState() async throws {
221221
await roiStrategy.setROI(CGRect(x: 0.2, y: 0.2, width: 0.5, height: 0.5))
222222

223-
for i in 0..<6 {
223+
for i in 0..<15 {
224224
let frame = makeFrame(at: Double(i) * 0.033)
225225
await processor.processFrame(frame)
226226
}
227227

228228
try await Task.sleep(nanoseconds: 1_000_000_000)
229-
let stateBefore = await strategy.lastReceivedState
230-
XCTAssertNotNil(stateBefore, "Should have established state")
229+
let historyBefore = await strategy.stateHistory
230+
XCTAssertGreaterThan(historyBefore.count, 1, "Should have established state over multiple inferences")
231231

232232
await strategy.setShouldFail(true)
233-
for i in 10..<60 {
233+
for i in 15..<65 {
234234
let frame = makeFrame(at: Double(i) * 0.033)
235235
await processor.processFrame(frame)
236236
try await Task.sleep(nanoseconds: 25_000_000)
@@ -241,7 +241,7 @@ final class StreamProcessorTests: XCTestCase {
241241
await strategy.setShouldFail(false)
242242
await strategy.clearHistory()
243243

244-
for i in 100..<110 {
244+
for i in 100..<115 {
245245
let frame = makeFrame(at: Double(i) * 0.033)
246246
await processor.processFrame(frame)
247247
}

0 commit comments

Comments
 (0)