Skip to content

Commit

Permalink
fix test by removing async dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Jan 10, 2023
1 parent 360b2a9 commit 2b727d3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Tests/SentryTests/Profiling/SentryProfilerSwiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ class SentryProfilerSwiftTests: XCTestCase {

// gather mock cpu usages and memory footprints
for _ in 0..<2 {
let cpuExp = expectation(description: "first set of timeseries measurements are gathered")
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self.fixture.timerWrapper.fire()
cpuExp.fulfill()
}
waitForExpectations(timeout: 1)
self.fixture.timerWrapper.fire()
}

// finish profile
Expand Down

0 comments on commit 2b727d3

Please sign in to comment.