Skip to content

Commit

Permalink
skipping tests more correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Apr 17, 2024
1 parent 5ac9722 commit 10a0a9c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/DXAsyncLastTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ final class DXAsyncLastTest: XCTestCase {
}

func testIndexedEventTask() async throws {
throw XCTSkip("""
try XCTSkipIf(true, """
Skiped
""")
let date = Calendar.current.date(byAdding: .month, value: -1, to: Date())!
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/DXLastEventsSubscribedTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ final class DXLastEventsSubscribedTest: XCTestCase {
return
}
let type = Candle.self
let subscription = try feed?.createSubscription([type])

do {
let nillList = try feed?.getTimeSeriesIfSubscribed(type: type,
Expand All @@ -85,6 +84,7 @@ final class DXLastEventsSubscribedTest: XCTestCase {
toTime: toTime)
XCTAssertNil(nillList)
}
let subscription = try feed?.createSubscription([type])
do {
// wrong sub time
try subscription?.addSymbols(TimeSeriesSubscriptionSymbol(symbol: candleSymbol, fromTime: toTime))
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/DXPromiseTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ final class DXPromiseTest: XCTestCase {
}

func testCompleteExceptPromise() throws {
throw XCTSkip("""
try XCTSkipIf(true, """
Graal doesn't have impl for ExceptionMapper.toJava.
and always throws exception illegalStateException
""")
Expand Down
3 changes: 2 additions & 1 deletion DXFeedFrameworkTests/IPFTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ STOCK,EREGL:TR,EREĞLİ DEMİR VE ÇELİK FABRİKALARI1 T.A.Ş.,TR,XIST,XIST,TRY

func testConnection() throws {
guard let address = ProcessInfo.processInfo.environment["ipf_address"] else {
throw XCTSkip("Please input address")
try XCTSkipIf(true, "Please input address")
return
}
let expectationCollector = expectation(description: "Collector")
expectationCollector.assertForOverFulfill = false
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/IsolateTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class IsolateTest: XCTestCase {
}

func testCleanup() throws {
throw XCTSkip("Just for manual running")
try XCTSkipIf(true, "Just for manual running")
let isolate = Isolate.shared
isolate.cleanup()
let sec = 5
Expand Down

0 comments on commit 10a0a9c

Please sign in to comment.