diff --git a/Tests/LiveKitTests/CompleterTests.swift b/Tests/LiveKitTests/CompleterTests.swift index 0fcefe902..08ab3134c 100644 --- a/Tests/LiveKitTests/CompleterTests.swift +++ b/Tests/LiveKitTests/CompleterTests.swift @@ -51,7 +51,7 @@ class CompleterTests: XCTestCase { group.addTask { print("Timer task: Started...") // Cancel after 3 seconds - // try await Task.sleep(until: .now + .seconds(3), clock: .continuous) + try await Task.sleep(nanoseconds: 3 * 1_000_000_000) print("Timer task: Cancelling...") completer.reset() } @@ -94,7 +94,7 @@ class CompleterTests: XCTestCase { group.addTask { print("Timer task: Started...") // Cancel after 3 seconds - // try await Task.sleep(until: .now + .seconds(3), clock: .continuous) + try await Task.sleep(nanoseconds: 3 * 1_000_000_000) print("Timer task: Completing...") completer.resume(returning: ()) } diff --git a/Tests/LiveKitTests/LiveKitTests.swift b/Tests/LiveKitTests/LiveKitTests.swift deleted file mode 100644 index bc850a6b6..000000000 --- a/Tests/LiveKitTests/LiveKitTests.swift +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2024 LiveKit - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@testable import LiveKit -import XCTest - -final class LiveKitTests: XCTestCase { - func testConnect() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct - // results. - /* - let connectOptions = ConnectOptions(token: "some-token") { builder in - builder.roomName = "my-room" - } - */ - XCTAssertEqual(true, true) - } - - static var allTests = [ - ("testExample", testConnect), - ] -}