From 7d7bc749b9f844ab98e342480bb8ca80b2ad8c7e Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Tue, 5 Dec 2023 13:20:28 +0100 Subject: [PATCH] test: Increase timeout for SpanTests (#3479) 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. --- Tests/SentryTests/Transaction/SentrySpanTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/SentryTests/Transaction/SentrySpanTests.swift b/Tests/SentryTests/Transaction/SentrySpanTests.swift index 99c7981342d..46e55c59dda 100644 --- a/Tests/SentryTests/Transaction/SentrySpanTests.swift +++ b/Tests/SentryTests/Transaction/SentrySpanTests.swift @@ -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() { @@ -110,7 +110,7 @@ class SentrySpanTests: XCTestCase { expect.fulfill() } - wait(for: [expect], timeout: 0.1) + wait(for: [expect], timeout: 1.0) } func testFinish() {