Skip to content

Commit d5b592d

Browse files
committed
disable more tests in CI
1 parent cf86d15 commit d5b592d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Tests/APIValidationTests/CardserviceAPITests.swift

+9-1
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,27 @@ class CardserviceAPITests: XCTestCase {
5151

5252
func testLoginSuccess() async throws {
5353
if ProcessInfo.processInfo.environment["CI"] != nil {
54-
print("Skipping successful login test in CI.")
54+
print("Skipping test in CI.")
5555
return
5656
}
5757
_ = try await Cardservice.login(username: username, password: password)
5858
}
5959

6060
func testFetchCarddata() async throws {
61+
if ProcessInfo.processInfo.environment["CI"] != nil {
62+
print("Skipping test in CI.")
63+
return
64+
}
6165
let cardservice = try await Cardservice.login(username: username, password: password)
6266
let carddata = try await cardservice.carddata()
6367
XCTAssert(!carddata.isEmpty)
6468
}
6569

6670
func testFetchTransactions() async throws {
71+
if ProcessInfo.processInfo.environment["CI"] != nil {
72+
print("Skipping test in CI.")
73+
return
74+
}
6775
let cardservice = try await Cardservice.login(username: username, password: password)
6876
let oneWeekAgo = Date().addingTimeInterval(-1 * 60 * 60 * 24 * 7)
6977
_ = try await cardservice.transactions(begin: oneWeekAgo)

0 commit comments

Comments
 (0)