Skip to content

Commit

Permalink
Pass through file and line to XCTAssertEqual in Counter
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Nov 28, 2022
1 parent 2bd88a1 commit b34e05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/AsyncQueueTests/AsyncQueueTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ final class AsyncQueueTests: XCTestCase {
// MARK: - Counter

private actor Counter {
func incrementAndExpectCount(equals expectedCount: Int) {
func incrementAndExpectCount(equals expectedCount: Int, file: StaticString = #filePath, line: UInt = #line) {
increment()
XCTAssertEqual(expectedCount, count)
XCTAssertEqual(expectedCount, count, file: file, line: line)
}

func increment() {
Expand Down

0 comments on commit b34e05a

Please sign in to comment.