Skip to content

Commit

Permalink
Remove unnecessary logging from EventCollector.verifyNthValue function
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenviewer committed Oct 25, 2024
1 parent 59354b5 commit 31f22f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/Integration/IntegrationHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,14 @@ class EventCollector<T: Equatable> {

func verifyNthValue(at nth: Int, isEqualTo targetValue: T) async {
if nth > self.values.count {
XCTFail("Expected \(nth)th value: \(targetValue), but the stream ended before reaching the value")
XCTFail("Expected \(nth)th value: \(targetValue), but only received \(self.values.count) values")
}

var counter = 0
for await value in self.asyncStream() {
counter += 1

if counter == nth {
print("\(nth)th, value: \(value)")
XCTAssertTrue(value == targetValue, "Expected \(nth)th value: \(targetValue), actual value: \(value)")
break
}
Expand Down

0 comments on commit 31f22f5

Please sign in to comment.