Skip to content

Commit

Permalink
test: FileManager remove perf test (#2869)
Browse files Browse the repository at this point in the history
CI can't compare the performance test with measure against anything, as Xcode
needs baseline files for the same computer. In CI, the computer specifications might
change frequently, so it's a lot of effort to create those baseline files. This test only
slows down CI, and therefore, we can remove it. For more context see
#1482.
  • Loading branch information
philipphofmann authored Apr 6, 2023
1 parent 4654f66 commit 90d17d3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Tests/SentryTests/Helper/SentryFileManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -375,21 +375,6 @@ class SentryFileManagerTests: XCTestCase {
XCTAssertEqual(0, fixture.delegate.envelopeItemsDeleted.count)
}

/**
* We need to deserialize every envelope and check if it contains a session.
*/
func testMigrateSessionInit_WorstCasePerformance() {
sut.store(fixture.sessionEnvelope)
sut.store(fixture.sessionUpdateEnvelope)
for _ in 0...(fixture.maxCacheItems - 3) {
sut.store(TestConstants.envelope)
}

measure {
sut.store(TestConstants.envelope)
}
}

func testGetAllEnvelopesAreSortedByDateAscending() {
givenMaximumEnvelopes()

Expand Down

0 comments on commit 90d17d3

Please sign in to comment.