Skip to content

Commit 9b3af14

Browse files
test: Adjust data count range in SpotlightTests (#6549)
Updated the expected data count range in the SentrySpotlightTransportTests to allow for a wider variance in GZip compression results, changing the lower and upper bounds from ±20 to ±40 to avoid flakiness.
1 parent d14bd20 commit 9b3af14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SentryTests/Networking/SentrySpotlightTransportTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ final class SentrySpotlightTransportTests: XCTestCase {
9696
XCTAssertEqual(request.url?.absoluteString, options.spotlightUrl)
9797

9898
let expectedData = try getSerializedGzippedData(envelope: givenEventEnvelope())
99-
let expectedDataCountLower = expectedData.count - 20
100-
let expectedDataCountUpper = expectedData.count + 20
99+
let expectedDataCountLower = expectedData.count - 40
100+
let expectedDataCountUpper = expectedData.count + 40
101101

102102
// Compressing with GZip doesn't always produce the same results
103103
// We only want to know if the attachment got removed. Therefore, a comparison with a range is acceptable.

0 commit comments

Comments
 (0)