From e65f2566f9793e236ff0bb3cf3c475c6166d1f50 Mon Sep 17 00:00:00 2001 From: Aleksey Kosylo Date: Tue, 26 Mar 2024 14:07:10 +0100 Subject: [PATCH] update graal version --- .../DXOtcMarketOrderTest.swift | 55 ++++++++++--------- build.gradle | 4 +- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/DXFeedFrameworkTests/DXOtcMarketOrderTest.swift b/DXFeedFrameworkTests/DXOtcMarketOrderTest.swift index 1f9ed028f..793b612fb 100644 --- a/DXFeedFrameworkTests/DXOtcMarketOrderTest.swift +++ b/DXFeedFrameworkTests/DXOtcMarketOrderTest.swift @@ -34,8 +34,6 @@ final class DXOtcMarketOrderTest: XCTestCase { } func testOtcPublishing() throws { - throw XCTSkip("skip. otc not ready") - let SYMBOL1 = "AAPL_TEST1" let SYMBOL2 = "AAPL_TEST2" let order1 = OtcMarketsOrder(SYMBOL1) @@ -77,31 +75,34 @@ final class DXOtcMarketOrderTest: XCTestCase { let testEventListenr = AnonymousClass { anonymCl in anonymCl.callback = { events in if events.count > 0 { - let event = events.first!.otcMarketsOrder - if event.eventSymbol == SYMBOL1 { - XCTAssertEqual(event.marketMaker, "MM1") - XCTAssertEqual(event.price, 10) - XCTAssertEqual(event.quoteAccessPayment, -30) - XCTAssertEqual(event.isOpen, true) - XCTAssertEqual(event.isUnsolicited, true) - XCTAssertEqual(event.otcMarketsPriceType, .actual) - XCTAssertEqual(event.isSaturated, true) - XCTAssertEqual(event.isAutoExecution, true) - XCTAssertEqual(event.isNmsConditional, true) - XCTAssertEqual(event.otcMarketsFlags, order1.otcMarketsFlags) - receivedEvent1Exp.fulfill() - } else if event.eventSymbol == SYMBOL2 { - XCTAssertEqual(event.marketMaker, "MM2") - XCTAssertEqual(event.price, 10) - XCTAssertEqual(event.quoteAccessPayment, -30) - XCTAssertEqual(event.isOpen, true) - XCTAssertEqual(event.isUnsolicited, true) - XCTAssertEqual(event.otcMarketsPriceType, .actual) - XCTAssertEqual(event.isSaturated, true) - XCTAssertEqual(event.isAutoExecution, false) - XCTAssertEqual(event.isNmsConditional, false) - XCTAssertEqual(event.otcMarketsFlags, order2.otcMarketsFlags) - receivedEvent1Exp.fulfill() + events.forEach { event in + XCTAssertEqual(event.type, .otcMarketsOrder) + var event = event.otcMarketsOrder + if event.eventSymbol == SYMBOL1 { + XCTAssertEqual(event.marketMaker, "MM1") + XCTAssertEqual(event.price, 10) + XCTAssertEqual(event.quoteAccessPayment, -30) + XCTAssertEqual(event.isOpen, true) + XCTAssertEqual(event.isUnsolicited, true) + XCTAssertEqual(event.otcMarketsPriceType, .actual) + XCTAssertEqual(event.isSaturated, true) + XCTAssertEqual(event.isAutoExecution, true) + XCTAssertEqual(event.isNmsConditional, true) + XCTAssertEqual(event.otcMarketsFlags, order1.otcMarketsFlags) + receivedEvent1Exp.fulfill() + } else if event.eventSymbol == SYMBOL2 { + XCTAssertEqual(event.marketMaker, "MM2") + XCTAssertEqual(event.price, 10) + XCTAssertEqual(event.quoteAccessPayment, -30) + XCTAssertEqual(event.isOpen, true) + XCTAssertEqual(event.isUnsolicited, true) + XCTAssertEqual(event.otcMarketsPriceType, .wanted) + XCTAssertEqual(event.isSaturated, true) + XCTAssertEqual(event.isAutoExecution, false) + XCTAssertEqual(event.isNmsConditional, false) + XCTAssertEqual(event.otcMarketsFlags, order2.otcMarketsFlags) + receivedEvent1Exp.fulfill() + } } } } diff --git a/build.gradle b/build.gradle index 7c8f63bd3..117aa9e16 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ repositories { } } -def native_version = '1.1.8' +def native_version = '1.1.10' def name = 'graal-native-sdk' dependencies { implementation(group: 'com.dxfeed', name: "${name}", version: "${native_version}", classifier: 'aarch64-osx', ext: 'zip') @@ -29,6 +29,8 @@ task fetchDependencies(type: Copy) { from sourceSets.main.runtimeClasspath into 'downloads' + new File('graal_builds').deleteDir() + doLast { println "fetch dep:" ext.frameworkName = { zipFileName ->