Skip to content

Commit

Permalink
fix(ios): use marathon's time source for test timestamps (#969)
Browse files Browse the repository at this point in the history
* fix(ios): use marathon's time source for test timestamps
  • Loading branch information
Malinskiy authored Aug 23, 2024
1 parent dbaf166 commit d9dda98
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ abstract class AccumulatingTestResultListener(private val expectedTestCount: Int
testEnded(test, startTime, endTime)
}

/**
* Even though apple provides the timestamps for tests, there is no expectation of these being in sync with local time
*/
private fun testEnded(test: Test, startTime: Long, endTime: Long) {
runResult.testEnded(test = test, testMetrics = emptyMap(), endTime = endTime)
runResult.testEnded(test = test, testMetrics = emptyMap())
}

override suspend fun testRunFailed(errorMessage: String, reason: DeviceFailureReason) {
Expand Down

0 comments on commit d9dda98

Please sign in to comment.