Skip to content

Merge of DownloadManager with upstream/develop #1174

Merge of DownloadManager with upstream/develop

Merge of DownloadManager with upstream/develop #1174

Triggered via pull request January 29, 2025 11:31
Status Failure
Total duration 11m 21s
Artifacts 1

unit_tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L210
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, Asynchronous wait failed: Exceeded timeout of 1 seconds, with unfulfilled expectations: "wait for added event", "wait for started event", "wait for paused event", "wait for canceled event", "wait for courseCanceled event", "wait for allCanceled event", "wait for finished event", "wait for deletedFile event", "wait for clearedAll event".
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L211
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertTrue failed - Expected: exactly 9 invocations of `.getDownloadTasks()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L212
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertTrue failed - Expected: exactly 9 invocations of `.getCurrentDownloadTask()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L213
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertEqual failed: ("0") is not equal to ("9")
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L214
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertEqual failed: ("nil") is not equal to ("Optional(Course.CourseDownloadValue(currentDownloadTask: Optional(Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)), courseDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], allDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], notFinishedTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], downloadableVerticals: Set([Course.VerticalsDownloadState(vertical: Core.CourseVertical(blockId: "", id: "", courseId: "123", displayName: "", type: Core.BlockType.vertical, completion: 0.0, childs: [Core.CourseBlock(blockId: "", id: "1", courseId: "123", topicId: Optional(""), graded: false, due: Optional(2025-01-29 11:40:46 +0000), completion: 0.0, type: Core.BlockType.video, displayName: "", studentUrl: "", webUrl: "", subtitles: nil, encodedVideo: Optional(Core.CourseBlockEncodedVideo(fallback: nil, desktopMP4: Optional(Core.CourseBlockVideo(url: Optional("http://test/test.mp4"), fileSize: Optional(1000), streamPriority: Optional(1))), mobileHigh: nil, mobileLow: nil, hls: nil, youtube: nil)), multiDevice: Optional(true), offlineDownload: nil)], webUrl: ""), state: Core.DownloadViewState.downloading)]), sequentialsStates: ["": Core.DownloadViewState.downloading], totalFilesSize: 1000, downloadedFilesSize: 0, largestBlocks: [], state: Course.OfflineView.DownloadAllState.cancel))")
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L138
testPublisher_whenRefresh_ShouldSendValue, Asynchronous wait failed: Exceeded timeout of 1 seconds, with unfulfilled expectations: "wait for publisher".
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L139
testPublisher_whenRefresh_ShouldSendValue, XCTAssertTrue failed - Expected: once invocations of `.getDownloadTasks()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L140
testPublisher_whenRefresh_ShouldSendValue, XCTAssertTrue failed - Expected: once invocations of `.getCurrentDownloadTask()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L141
testPublisher_whenRefresh_ShouldSendValue, XCTAssertEqual failed: ("nil") is not equal to ("Optional(Course.CourseDownloadValue(currentDownloadTask: Optional(Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)), courseDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], allDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], notFinishedTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], downloadableVerticals: Set([Course.VerticalsDownloadState(vertical: Core.CourseVertical(blockId: "", id: "", courseId: "123", displayName: "", type: Core.BlockType.vertical, completion: 0.0, childs: [Core.CourseBlock(blockId: "", id: "1", courseId: "123", topicId: Optional(""), graded: false, due: Optional(2025-01-29 11:40:49 +0000), completion: 0.0, type: Core.BlockType.video, displayName: "", studentUrl: "", webUrl: "", subtitles: nil, encodedVideo: Optional(Core.CourseBlockEncodedVideo(fallback: nil, desktopMP4: Optional(Core.CourseBlockVideo(url: Optional("http://test/test.mp4"), fileSize: Optional(1000), streamPriority: Optional(1))), mobileHigh: nil, mobileLow: nil, hls: nil, youtube: nil)), multiDevice: Optional(true), offlineDownload: nil)], webUrl: ""), state: Core.DownloadViewState.downloading)]), sequentialsStates: ["": Core.DownloadViewState.downloading], totalFilesSize: 1000, downloadedFilesSize: 0, largestBlocks: [], state: Course.OfflineView.DownloadAllState.cancel))")
Tests
Process completed with exit code 1.
Tests
xcodesorg/made/xcodes 1.6.0 is already installed and up-to-date. To reinstall 1.6.0, run: brew reinstall xcodes
Tests
git-lfs 3.6.1 is already installed and up-to-date. To reinstall 3.6.1, run: brew reinstall git-lfs
Tests: Core/Core/View/Base/Webview/WebView.swift#L118
instance method 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Equatable' has no effect
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Identifiable' has no effect
Tests: Core/Core/View/Base/Webview/Models/AccessibilityInjection.swift#L13
@preconcurrency attribute on conformance to 'Equatable' has no effect
Tests: Core/Core/View/Base/Webview/Models/AccessibilityInjection.swift#L13
@preconcurrency attribute on conformance to 'Identifiable' has no effect
Tests: Core/Core/View/Base/Webview/WebViewHTML.swift#L85
instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
Tests: Core/Core/View/Base/Webview/WebViewHTML.swift#L85
instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
Tests: Core/Core/View/Base/Webview/WebView.swift#L118
instance method 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Equatable' has no effect
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Identifiable' has no effect

Artifacts

Produced during runtime
Name Size
test-output Expired
5.91 KB