Skip to content

Commit

Permalink
fix: wrong value of time if timeseriessubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Jun 5, 2024
1 parent b4d574f commit 57b978d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NativeTimeSeriesSubscription {
_ = try ErrorCheck.nativeCall(thread, dxfg_DXFeedTimeSeriesSubscription_setFromTime(
thread,
native,
0))
fromTime))
}

}
4 changes: 2 additions & 2 deletions DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ final class DXTimeSeriesSubscriptionTest: XCTestCase {
return anonymCl
}
try subscription?.add(listener: listener)
try subscription?.set(fromTime: 10000)
try subscription?.addSymbols(["ETH/USD:GDAX", "IBM"])
try subscription?.set(fromTime: 1717045200)
try subscription?.addSymbols(["AAPL{=8h}"])
wait(for: [receivedEventsExpectation], timeout: 3.0)
try endpoint.closeAndAwaitTermination()
}
Expand Down

0 comments on commit 57b978d

Please sign in to comment.