From 45623edc375dae9aa1bd9d3b94222279946fbab3 Mon Sep 17 00:00:00 2001 From: Alexander Eichhorn Date: Sun, 29 Sep 2024 23:21:11 +0200 Subject: [PATCH] fix tests of expired or changed youtube videos/livestreams --- Tests/YouTubeKitTests/YouTubeKitTests.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/YouTubeKitTests/YouTubeKitTests.swift b/Tests/YouTubeKitTests/YouTubeKitTests.swift index 52a226b..19f9ec8 100644 --- a/Tests/YouTubeKitTests/YouTubeKitTests.swift +++ b/Tests/YouTubeKitTests/YouTubeKitTests.swift @@ -169,7 +169,7 @@ final class YouTubeKitTests: XCTestCase { } func testLivestreamHlsManifestUrl() async { - let youtube = YouTube(videoID: "21X5lGlDOfg") + let youtube = YouTube(videoID: "O9mYwRlucZY") do { let livestreams = try await youtube.livestreams XCTAssert(livestreams.count > 0) @@ -182,7 +182,7 @@ final class YouTubeKitTests: XCTestCase { } func testLivestreamHlsManifestUrlRemote() async { - let youtube = YouTube(videoID: "21X5lGlDOfg", methods: [.remote]) + let youtube = YouTube(videoID: "O9mYwRlucZY", methods: [.remote]) do { let livestreams = try await youtube.livestreams XCTAssert(livestreams.count > 0) @@ -218,7 +218,7 @@ final class YouTubeKitTests: XCTestCase { let youtube = YouTube(videoID: "ApM_KEr1ktQ") do { let metadata = try await youtube.metadata! - XCTAssertEqual(metadata.title, "Le Maroc Vu du Ciel (Documentaire)") + XCTAssertEqual(metadata.title, "Le Maroc Vu du Ciel (Documentaire de Yann Arthus-Bertrand)") XCTAssertFalse(metadata.description.isEmpty) XCTAssertEqual(metadata.thumbnail!.url, URL(string: "https://i.ytimg.com/vi/ApM_KEr1ktQ/sddefault.jpg")) } catch let error { @@ -230,7 +230,7 @@ final class YouTubeKitTests: XCTestCase { let youtube = YouTube(videoID: "ApM_KEr1ktQ", methods: [.remote]) do { let metadata = try await youtube.metadata! - XCTAssertEqual(metadata.title, "Le Maroc Vu du Ciel (Documentaire)") + XCTAssertEqual(metadata.title, "Le Maroc Vu du Ciel (Documentaire de Yann Arthus-Bertrand)") XCTAssertFalse(metadata.description.isEmpty) XCTAssertEqual(metadata.thumbnail!.url, URL(string: "https://i.ytimg.com/vi/ApM_KEr1ktQ/sddefault.jpg")) } catch let error {