Skip to content

Commit ecc4efd

Browse files
bsneedBrandon Sneed
andauthored
Call correct process method in Group. (#96)
* Call correct process method in Group. * Fixed flush test * Get more test information Co-authored-by: Brandon Sneed <[email protected]>
1 parent 2a36985 commit ecc4efd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Segment/Events.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@ extension Analytics {
205205
exceptionFailure("Could not parse traits.")
206206
}
207207
}
208-
process(event: event)
208+
process(incomingEvent: event)
209209
}
210210
}

Tests/Segment-Tests/Analytics_Tests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ final class Analytics_Tests: XCTestCase {
319319
analytics.track(name: "test")
320320

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

326326
func testVersion() {

0 commit comments

Comments
 (0)