Skip to content

Commit

Permalink
fix tests of expired or changed youtube videos/livestreams
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeichhorn committed Sep 29, 2024
1 parent c91a94d commit 45623ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/YouTubeKitTests/YouTubeKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 45623ed

Please sign in to comment.