Skip to content

Commit cc0e14c

Browse files
committed
Fix testRunTaskCancellationThrowsRunError
Motivation: Yielding before running resulted in a fatalError. Modifications: * remove message yields from testRunTaskCancellationThrowsRunError
1 parent c4aca20 commit cc0e14c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Tests/SwiftKafkaTests/KafkaPollingSystemTests.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,6 @@ final class KafkaPollingSystemTests: XCTestCase {
179179
}
180180
}
181181

182-
// Produce elements until we reach the high watermark
183-
// should work fine.
184-
for num in 1...4 {
185-
sut.yield(num)
186-
XCTAssertTrue(Self.isPollAndSleep(sut.nextPollLoopAction()))
187-
}
188-
189-
// Producing this element makes us reach the high watermark.
190-
// The poll loop should suspend now.
191-
sut.yield(5)
192-
XCTAssertTrue(Self.isSuspendPollLoop(sut.nextPollLoopAction()))
193-
194182
// Cancel the Task that runs the poll loop.
195183
// This should result in the poll loop shutting down.
196184
runTask.cancel()

0 commit comments

Comments
 (0)