@@ -41,8 +41,19 @@ internal actor Poller<T> {
4141 file: expression. location. file,
4242 line: expression. location. line,
4343 fnName: fnName) {
44- self . updateMatcherResult ( result: try await matcherRunner ( ) )
45- . toBoolean ( expectation: style)
44+ if self . updateMatcherResult ( result: try await matcherRunner ( ) )
45+ . toBoolean ( expectation: style) {
46+ if matchStyle. isContinous {
47+ return . incomplete
48+ }
49+ return . finished( true )
50+ } else {
51+ if matchStyle. isContinous {
52+ return . finished( false )
53+ } else {
54+ return . incomplete
55+ }
56+ }
4657 }
4758 return processPollResult ( result. toPollResult ( ) , matchStyle: matchStyle, lastMatcherResult: lastMatcherResult, fnName: fnName)
4859 }
@@ -152,7 +163,7 @@ extension SyncExpectation {
152163 description: description) {
153164 await poll (
154165 expression: asyncExpression,
155- style: . toMatch ,
166+ style: . toNotMatch ,
156167 matchStyle: . never,
157168 timeout: until,
158169 poll: pollInterval,
@@ -186,7 +197,7 @@ extension SyncExpectation {
186197 description: description) {
187198 await poll (
188199 expression: asyncExpression,
189- style: . toNotMatch ,
200+ style: . toMatch ,
190201 matchStyle: . always,
191202 timeout: until,
192203 poll: pollInterval,
@@ -282,7 +293,7 @@ extension SyncExpectation {
282293 description: description) {
283294 await poll (
284295 expression: asyncExpression,
285- style: . toMatch ,
296+ style: . toNotMatch ,
286297 matchStyle: . never,
287298 timeout: until,
288299 poll: pollInterval,
@@ -316,7 +327,7 @@ extension SyncExpectation {
316327 description: description) {
317328 await poll (
318329 expression: asyncExpression,
319- style: . toNotMatch ,
330+ style: . toMatch ,
320331 matchStyle: . always,
321332 timeout: until,
322333 poll: pollInterval,
@@ -409,7 +420,7 @@ extension AsyncExpectation {
409420 description: description) {
410421 await poll (
411422 expression: expression,
412- style: . toMatch ,
423+ style: . toNotMatch ,
413424 matchStyle: . never,
414425 timeout: until,
415426 poll: pollInterval,
@@ -442,7 +453,7 @@ extension AsyncExpectation {
442453 description: description) {
443454 await poll (
444455 expression: expression,
445- style: . toNotMatch ,
456+ style: . toMatch ,
446457 matchStyle: . always,
447458 timeout: until,
448459 poll: pollInterval,
@@ -533,7 +544,7 @@ extension AsyncExpectation {
533544 description: description) {
534545 await poll (
535546 expression: expression,
536- style: . toMatch ,
547+ style: . toNotMatch ,
537548 matchStyle: . never,
538549 timeout: until,
539550 poll: pollInterval,
@@ -566,7 +577,7 @@ extension AsyncExpectation {
566577 description: description) {
567578 await poll (
568579 expression: expression,
569- style: . toNotMatch ,
580+ style: . toMatch ,
570581 matchStyle: . always,
571582 timeout: until,
572583 poll: pollInterval,
0 commit comments