From 0ff831f0213b52e201f1755c15dd5a2b23801003 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 25 Jun 2022 20:21:49 +0200 Subject: [PATCH] Fix target in test workflow --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- .../Tests/PassepartoutProfilesTests/ProfilesTests.swift | 1 + .../Tests/PassepartoutProvidersTests/ProvidersTests.swift | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d73ba0e..c2ff2667 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: bundle exec fastlane --env ${{ matrix.platform }} match development # - name: Run tests # run: | -# cd PassepartoutCore +# cd PassepartoutLibrary # swift test - name: Build ${{ matrix.name }} app timeout-minutes: 15 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37a58f0d..32e2e41c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,5 +26,5 @@ jobs: xcode-version: latest-stable - name: Run tests run: | - cd PassepartoutCore + cd PassepartoutLibrary swift test diff --git a/PassepartoutLibrary/Tests/PassepartoutProfilesTests/ProfilesTests.swift b/PassepartoutLibrary/Tests/PassepartoutProfilesTests/ProfilesTests.swift index e92b74ca..d386af1d 100644 --- a/PassepartoutLibrary/Tests/PassepartoutProfilesTests/ProfilesTests.swift +++ b/PassepartoutLibrary/Tests/PassepartoutProfilesTests/ProfilesTests.swift @@ -24,6 +24,7 @@ // import XCTest +import PassepartoutCore @testable import PassepartoutProfiles import SwiftyBeaver diff --git a/PassepartoutLibrary/Tests/PassepartoutProvidersTests/ProvidersTests.swift b/PassepartoutLibrary/Tests/PassepartoutProvidersTests/ProvidersTests.swift index 6088657d..2f4e39fe 100644 --- a/PassepartoutLibrary/Tests/PassepartoutProvidersTests/ProvidersTests.swift +++ b/PassepartoutLibrary/Tests/PassepartoutProvidersTests/ProvidersTests.swift @@ -26,6 +26,7 @@ import XCTest import CoreData import Combine +import PassepartoutCore @testable import PassepartoutProviders import PassepartoutServices import PassepartoutUtils @@ -44,7 +45,7 @@ class ProvidersTests: XCTestCase { override func setUp() { pp_log.addDestination(ConsoleDestination()) - manager = ProviderManager( + manager = DefaultProviderManager( appBuild: 10000, bundleServices: DefaultWebServices.bundledServices(withVersion: "v5"), webServices: DefaultWebServices("v5", URL(string: "https://passepartoutvpn.app/api/")!, timeout: nil),