File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
FirebaseCore/Internal/Tests/Integration Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments