Skip to content

Commit

Permalink
Fixed Unit Tests for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jun 6, 2017
1 parent 0e8b986 commit 99b6111
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 182 deletions.
4 changes: 2 additions & 2 deletions Package.pins
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"package": "Cairo",
"reason": null,
"repositoryURL": "https://github.com/PureSwift/Cairo.git",
"version": "1.2.1"
"version": "1.2.2"
},
{
"package": "LittleCMS",
"reason": null,
"repositoryURL": "https://github.com/PureSwift/LittleCMS.git",
"version": "1.0.0"
"version": "1.0.1"
}
],
"version": 1
Expand Down
5 changes: 4 additions & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ import XCTest
@testable import Silica
@testable import SilicaTests

XCTMain([testCase(FontTests.allTests)])
XCTMain([
testCase(FontTests.allTests),
testCase(StyleKitTests.allTests)
])
1 change: 1 addition & 0 deletions Tests/SilicaTests/Utilities/HTTP/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Dispatch

// Dot notation syntax for class
public extension HTTP {
Expand Down
177 changes: 0 additions & 177 deletions Tests/SilicaTests/Utilities/HTTP/URL.swift

This file was deleted.

4 changes: 2 additions & 2 deletions Tests/SilicaTests/Utilities/TestAssets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class TestAssetManager {

let cacheDirectory: URL

let httpClient = HTTP.Client()
let httpClient = HTTP.Client(session: URLSession(configuration: URLSessionConfiguration()))

private(set) var downloadedAssets = [TestAsset]()

Expand Down Expand Up @@ -85,7 +85,7 @@ final class TestAssetManager {

downloadedAssets.append(asset)

print("Downloaded \(asset.url)")
print("Downloaded \(asset.url.absoluteString)")
}
}

Expand Down

0 comments on commit 99b6111

Please sign in to comment.