Skip to content

Commit

Permalink
test: Increase timeout for SpanTests (#3479)
Browse files Browse the repository at this point in the history
The SentrySpanTests sometimes fail because the expectations sometimes
time out. To fix this, we increase the value so the tests don't fail
when CI is busy.
  • Loading branch information
philipphofmann authored Dec 5, 2023
1 parent ef5821b commit 7d7bc74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/SentryTests/Transaction/SentrySpanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SentrySpanTests: XCTestCase {
expect.fulfill()
}

wait(for: [expect], timeout: 0.1)
wait(for: [expect], timeout: 1.0)
}

func testInit_SetsThreadInfoAsSpanData_FromBackgroundThreadWithNoName() {
Expand All @@ -110,7 +110,7 @@ class SentrySpanTests: XCTestCase {
expect.fulfill()
}

wait(for: [expect], timeout: 0.1)
wait(for: [expect], timeout: 1.0)
}

func testFinish() {
Expand Down

0 comments on commit 7d7bc74

Please sign in to comment.