diff --git a/Sources/XCTest/Public/XCTestCase+Performance.swift b/Sources/XCTest/Public/XCTestCase+Performance.swift index 28b736c5d..88f4df27e 100644 --- a/Sources/XCTest/Public/XCTestCase+Performance.swift +++ b/Sources/XCTest/Public/XCTestCase+Performance.swift @@ -33,7 +33,7 @@ public struct XCTPerformanceMetric : RawRepresentable, Equatable, Hashable { public extension XCTPerformanceMetric { /// Records wall clock time in seconds between `startMeasuring`/`stopMeasuring`. - public static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name) + static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name) } /// The following methods are called from within a test method to carry out diff --git a/Sources/XCTest/Public/XCTestErrors.swift b/Sources/XCTest/Public/XCTestErrors.swift index 18014a4be..a18af0afb 100644 --- a/Sources/XCTest/Public/XCTestErrors.swift +++ b/Sources/XCTest/Public/XCTestErrors.swift @@ -36,10 +36,10 @@ public struct XCTestError : _BridgedStoredNSError { public extension XCTestError { /// Indicates that one or more expectations failed to be fulfilled in time /// during a call to `waitForExpectations(timeout:handler:)` - public static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting } + static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting } /// Indicates that a test assertion failed while waiting for expectations /// during a call to `waitForExpectations(timeout:handler:)` /// FIXME: swift-corelibs-xctest does not currently produce this error code. - public static var failureWhileWaiting: XCTestError.Code { return .failureWhileWaiting } + static var failureWhileWaiting: XCTestError.Code { return .failureWhileWaiting } }