Skip to content

Commit

Permalink
increase retry attempts for test
Browse files Browse the repository at this point in the history
small changes(remove call gc in tests)
  • Loading branch information
kosyloa committed Dec 14, 2023
1 parent 487eea9 commit f0dca44
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions DXFeedFrameworkTests/DXConnectionStateTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ final class DXConnectionStateTests: XCTestCase {
try endpoint?.close()
try endpoint?.disconnect()
wait(seconds: 2)
Isolate.shared.callGC()
// Isolate.shared.callGC()
state = try? endpoint?.getState()
try endpoint?.close()
state = try? endpoint?.getState()
Isolate.shared.callGC()
// Isolate.shared.callGC()
try endpoint?.close()
state = try? endpoint?.getState()
Isolate.shared.callGC()
// Isolate.shared.callGC()
state = try? endpoint?.getState()
endpoint = nil
endpoint = try DXEndpoint.builder().withRole(.feed).withProperty("test", "value").build()
Expand Down
7 changes: 0 additions & 7 deletions DXFeedFrameworkTests/DXConnectionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,4 @@ final class DXConnectionTest: XCTestCase {

wait(for: [receivedEventsExpectation], timeout: 2)
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
3 changes: 3 additions & 0 deletions DXFeedFrameworkTests/DXExceptPublisherTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"CandleTests\/testParseLongSymbol()",
"CandleTests\/testParseShortSymbol()",
"CandleTests\/testSnapshot()",
"DXConnectionTest\/testConnection()",
"DXConnectionTest\/testDXLinkConnection()",
"DXConnectionTest\/testPerformanceExample()",
"DateTests\/testDateConvert()",
"DateTests\/testExample()",
"DateTests\/testPerformanceExample()",
Expand Down
5 changes: 4 additions & 1 deletion DXFeedFrameworkTests/DXFeedAllTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
"environmentVariableEntries" : [

],
"maximumTestRepetitions" : 10,
"testRepetitionMode" : "retryOnFailure",
"threadSanitizerEnabled" : true
"testTimeoutsEnabled" : true,
"threadSanitizerEnabled" : true,
"undefinedBehaviorSanitizerEnabled" : true
},
"testTargets" : [
{
Expand Down
1 change: 0 additions & 1 deletion Samples/QdsTools/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
}

func sceneDidDisconnect(_ scene: UIScene) {
Expand Down

0 comments on commit f0dca44

Please sign in to comment.