From 41f4025dfa0858004b0507333b38f5fea0477171 Mon Sep 17 00:00:00 2001 From: Zsolt Varadi Date: Mon, 18 Mar 2019 18:58:41 +0100 Subject: [PATCH] Add missing public initializer to CurlyProvider ...and change the test to use regular import instead of `@testable` so this kind of stuff never happens again. --- Sources/CurlyClient/CurlyProvider.swift | 3 +++ Tests/CurlyClientTests/CurlyClientTests.swift | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/CurlyClient/CurlyProvider.swift b/Sources/CurlyClient/CurlyProvider.swift index f2fce0d..478fbc2 100644 --- a/Sources/CurlyClient/CurlyProvider.swift +++ b/Sources/CurlyClient/CurlyProvider.swift @@ -1,6 +1,9 @@ import Vapor public class CurlyProvider: Provider { + public init() { + } + public func register(_ services: inout Services) throws { services.register(CurlyClient.self) services.register { _ in CurlyOptionStorage() } diff --git a/Tests/CurlyClientTests/CurlyClientTests.swift b/Tests/CurlyClientTests/CurlyClientTests.swift index 70c5e21..a92d7f4 100644 --- a/Tests/CurlyClientTests/CurlyClientTests.swift +++ b/Tests/CurlyClientTests/CurlyClientTests.swift @@ -1,7 +1,7 @@ import XCTest import NIO import Vapor -@testable import CurlyClient +import CurlyClient final class CurlyClientTests: XCTestCase { private func testApplication() throws -> Application {