Made the test initializers package-visible.
This commit is contained in:
1 parent
ff00fdd852
commit
2364e2d859
4 files changed
+6
-6
No files matched your search
@@ -71,7 +71,7 @@ public struct RateLimitMiddleware {
|
||||
}
|
||||
|
||||
/// Creates a new middleware instance that waits with `sleep`, for testing.
|
||||
init(
|
||||
package init(
|
||||
maximumRetries: Int,
|
||||
baseDelay: TimeInterval,
|
||||
maximumDelay: TimeInterval,
|
||||
|
||||
@@ -74,7 +74,7 @@ public actor APIKeyTokenProvider {
|
||||
}
|
||||
|
||||
/// Creates a token provider that reads the current date from `now`, for testing.
|
||||
init(
|
||||
package init(
|
||||
issuerID: String?,
|
||||
keyID: String,
|
||||
privateKey: String,
|
||||
|
||||
@@ -17,8 +17,8 @@ import HTTPTypes
|
||||
import OpenAPIRuntime
|
||||
import Testing
|
||||
|
||||
// A testable import gives access to the initializer that injects the sleep closure.
|
||||
@testable import ASConnectService
|
||||
// A non-testable import ensures that the middleware can be created from outside the module.
|
||||
import ASConnectService
|
||||
|
||||
@Suite("RateLimitMiddleware")
|
||||
struct RateLimitMiddlewareTests {
|
||||
|
||||
@@ -17,8 +17,8 @@ import CryptoKit
|
||||
import Foundation
|
||||
import Testing
|
||||
|
||||
// A testable import gives access to the initializer that injects the current date.
|
||||
@testable import ASConnectService
|
||||
// A non-testable import ensures that the provider can be created from outside the module.
|
||||
import ASConnectService
|
||||
|
||||
@Suite("APIKeyTokenProvider")
|
||||
struct APIKeyTokenProviderTests {
|
||||
|
||||
Reference in new issue
Block a user