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 4b761e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DXFeedFrameworkTests/DXAsyncLastTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ final class DXAsyncLastTest: XCTestCase {
}

func testIndexedEventTask() async throws {
throw XCTSkip("""
// just use it to avoid warnings
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
3 changes: 2 additions & 1 deletion DXFeedFrameworkTests/DXPromiseTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ final class DXPromiseTest: XCTestCase {
}

func testCompleteExceptPromise() throws {
throw XCTSkip("""
// just use it to avoid warnings
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/IsolateTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ final class IsolateTest: XCTestCase {
}

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

0 comments on commit 4b761e4

Please sign in to comment.