Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Segment/Events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ extension Analytics {
exceptionFailure("Could not parse traits.")
}
}
process(event: event)
process(incomingEvent: event)
}
}
4 changes: 2 additions & 2 deletions Tests/Segment-Tests/Analytics_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ final class Analytics_Tests: XCTestCase {
analytics.track(name: "test")

let newBatchCount = analytics.storage.eventFiles(includeUnfinished: true).count
// 1 new temp file, and 1 new finished file.
XCTAssertTrue(newBatchCount == currentBatchCount + 2)
// 1 new temp file
XCTAssertTrue(newBatchCount == currentBatchCount + 1, "New Count (\(newBatchCount)) should be \(currentBatchCount) + 1")
}

func testVersion() {
Expand Down