Fix formatting in tests
This commit is contained in:
parent
e0ce4e8da3
commit
d0bd9aac07
|
|
@ -106,7 +106,7 @@ class MetricsExtensionsTests: XCTestCase {
|
||||||
MetricsSystem.bootstrapInternal(metrics)
|
MetricsSystem.bootstrapInternal(metrics)
|
||||||
|
|
||||||
let name = "timer-\(UUID().uuidString)"
|
let name = "timer-\(UUID().uuidString)"
|
||||||
let duration = Duration(secondsComponent: 3, attosecondsComponent: 123000000000000000)
|
let duration = Duration(secondsComponent: 3, attosecondsComponent: 123_000_000_000_000_000)
|
||||||
let durationInNanoseconds = duration.components.seconds * 1_000_000_000 + duration.components.attoseconds / 1_000_000_000
|
let durationInNanoseconds = duration.components.seconds * 1_000_000_000 + duration.components.attoseconds / 1_000_000_000
|
||||||
|
|
||||||
let timer = Timer(label: name)
|
let timer = Timer(label: name)
|
||||||
|
|
@ -119,8 +119,6 @@ class MetricsExtensionsTests: XCTestCase {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func testTimerUnits() throws {
|
func testTimerUnits() throws {
|
||||||
let metrics = TestMetrics()
|
let metrics = TestMetrics()
|
||||||
MetricsSystem.bootstrapInternal(metrics)
|
MetricsSystem.bootstrapInternal(metrics)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue