Skip to content

Commit

Permalink
Merge pull request #102 from UbiqueInnovation/fix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ubfelix authored Sep 18, 2024
2 parents 000951b + 28a63ef commit d097e6a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 20 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build & Test

env:
XCODE_VERSION: "Xcode_15.3"
XCODE_VERSION: "Xcode_15.4"

on:
push:
Expand All @@ -21,4 +21,3 @@ jobs:

- name: Fastlane
run: fastlane tests

18 changes: 0 additions & 18 deletions Tests/UBFoundationTests/Networking/UBSessionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,6 @@ class UBSessionTests: XCTestCase {
return testBundle
}()

func testRedirection() {
let ex = expectation(description: "s")
let url = URL(string: "http://ubique.ch")!
let dataTask = UBURLDataTask(url: url, session: Networking.sharedLowPrioritySession)
dataTask.addCompletionHandler(decoder: .passthrough) { result, response, _, _ in
switch result {
case .success:
break
case let .failure(error):
XCTFail(error.localizedDescription)
}
XCTAssertEqual(response?.statusCode.ub_standardHTTPCode, UBStandardHTTPCode.ok)
ex.fulfill()
}
dataTask.start()
waitForExpectations(timeout: 30, handler: nil)
}

func testURLValidationFailed() {
let ex = expectation(description: "s")
let url = URL(string: "https://www.ubique.ch")!
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit d097e6a

Please sign in to comment.