Skip to content

Commit

Permalink
Use NSEC_PER_SEC
Browse files Browse the repository at this point in the history
  • Loading branch information
wiruzx committed Dec 4, 2023
1 parent 61d7634 commit e7b929a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Chatto/Tests/ObservableAsyncStreamTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import Foundation
import XCTest
import Chatto
import Dispatch

@available(iOS 13, *)
final class ObservableAsyncStreamTests: XCTestCase {
Expand Down Expand Up @@ -62,7 +63,7 @@ final class ObservableAsyncStreamTests: XCTestCase {
try await withThrowingTaskGroup(of: T.self) { group in
group.addTask { try await operation() }
group.addTask {
try await Task.sleep(nanoseconds: 100_000_000)
try await Task.sleep(nanoseconds: NSEC_PER_SEC / 10)
throw TimeoutError()
}
let result = try await group.next()!
Expand Down

0 comments on commit e7b929a

Please sign in to comment.