Skip to content

Commit

Permalink
Fix timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Oct 25, 2024
1 parent c34fe5b commit 4d0f5e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SplitTests/Integration/streaming/MySegmentUpdateTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ class MySegmentUpdateTest: XCTestCase {

streamingBinding?.push(message: ":keepalive")

wait(for: [mySegExp], timeout: 50)
wait(for: [mySegExp], timeout: 5)

// Unbounded fetch notification should trigger my segments
// refresh on synchronizer
// Set count to 0 to start counting hits
syncSpy.forceMySegmentsCalledCount = 0
sdkUpdExp = XCTestExpectation()
pushMessage(TestingData.unboundedNotification(type: type, cn: mySegmentsCns[cnIndex()]))
wait(for: [sdkUpdExp], timeout: 5.0)
wait(for: [sdkUpdExp], timeout: 5)

// Should not trigger any fetch to my segments because
// this payload doesn't have "key1" enabled
Expand All @@ -86,11 +86,11 @@ class MySegmentUpdateTest: XCTestCase {
// Pushed key list message. Key 1 should add a segment
sdkUpdExp = XCTestExpectation()
pushMessage(TestingData.escapedKeyListNotificationGzip(type: type, cn: mySegmentsCns[cnIndex()]))
wait(for: [sdkUpdExp], timeout: 5.0)
wait(for: [sdkUpdExp], timeout: 5)

sdkUpdExp = XCTestExpectation()
pushMessage(TestingData.segmentRemovalNotification(type: type, cn: mySegmentsCns[cnIndex()]))
wait(for: [sdkUpdExp], timeout: 5.0)
wait(for: [sdkUpdExp], timeout: 5)

var segmentEntity: [String]!
if type == .mySegmentsUpdate {
Expand Down

0 comments on commit 4d0f5e5

Please sign in to comment.