Skip to content

Commit 76f59ab

Browse files
committed
Fix CI
1 parent 0d5ed67 commit 76f59ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseCore/Internal/Tests/Integration/HeartbeatLoggingIntegrationTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ class HeartbeatLoggingIntegrationTests: XCTestCase {
232232

233233
func testLogRepeatedly_WithoutFlushing_LimitsOnWrite() throws {
234234
// Given
235-
var testdate = date
236-
let heartbeatController = HeartbeatController(id: #function, dateProvider: { testdate })
235+
let testDate = AdjustableDate(date: date)
236+
let heartbeatController = HeartbeatController(id: #function, dateProvider: { testDate.date })
237237

238238
// When
239239
// Iterate over 35 days and log a heartbeat each day.
@@ -252,7 +252,7 @@ class HeartbeatLoggingIntegrationTests: XCTestCase {
252252
heartbeatController.log("dummy_agent_3")
253253
}
254254

255-
testdate.addTimeInterval(60 * 60 * 24) // Advance the test date by 1 day.
255+
testDate.date.addTimeInterval(60 * 60 * 24) // Advance the test date by 1 day.
256256
}
257257

258258
// Then

0 commit comments

Comments
 (0)